Class: Sinatra::Hat::Logger

Inherits:
Object show all
Defined in:
lib/sinatras-hat/logger.rb

Overview

TODO This needs to be using Rack::CommonLogger

Instance Method Summary collapse

Constructor Details

#initialize(maker) ⇒ Logger

Returns a new instance of Logger.



5
6
7
# File 'lib/sinatras-hat/logger.rb', line 5

def initialize(maker)
  @maker = maker
end

Instance Method Details

#debug(msg) ⇒ Object



13
14
15
# File 'lib/sinatras-hat/logger.rb', line 13

def debug(msg)
  say msg
end

#error(msg) ⇒ Object



21
22
23
# File 'lib/sinatras-hat/logger.rb', line 21

def error(msg)
  say msg
end

#fatal(msg) ⇒ Object



25
26
27
# File 'lib/sinatras-hat/logger.rb', line 25

def fatal(msg)
  say msg
end

#info(msg) ⇒ Object



9
10
11
# File 'lib/sinatras-hat/logger.rb', line 9

def info(msg)
  say msg
end

#warn(msg) ⇒ Object



17
18
19
# File 'lib/sinatras-hat/logger.rb', line 17

def warn(msg)
  say msg
end