Class: Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/botolo/logger.rb

Instance Method Summary collapse

Instance Method Details

#byeObject



15
16
17
# File 'lib/botolo/logger.rb', line 15

def bye
  info "#{@app} is shutting down"
end

#die(msg) ⇒ Object



11
12
13
14
# File 'lib/botolo/logger.rb', line 11

def die(msg)
  error(msg)
  Kernel.exit(-1)
end

#err(msg) ⇒ Object



19
20
21
# File 'lib/botolo/logger.rb', line 19

def err(msg)
  error(msg)
end

#helo(app, version) ⇒ Object



4
5
6
7
# File 'lib/botolo/logger.rb', line 4

def helo(app, version)
  @app = app
  info "#{app} v#{version} is starting up"
end

#ok(msg) ⇒ Object



8
9
10
# File 'lib/botolo/logger.rb', line 8

def ok(msg)
  info(msg)
end