Class: Sinatra::Hat::Logger
Overview
TODO This needs to be using Rack::CommonLogger
Instance Method Summary collapse
- #debug(msg) ⇒ Object
- #error(msg) ⇒ Object
- #fatal(msg) ⇒ Object
- #info(msg) ⇒ Object
-
#initialize(maker) ⇒ Logger
constructor
A new instance of Logger.
- #warn(msg) ⇒ Object
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 |