Class: Tumugi::Logger
- Inherits:
-
Object
- Object
- Tumugi::Logger
- Extended by:
- Forwardable
- Defined in:
- lib/tumugi/logger.rb
Instance Method Summary collapse
-
#initialize ⇒ Logger
constructor
A new instance of Logger.
- #quiet! ⇒ Object
- #verbose! ⇒ Object
Constructor Details
#initialize ⇒ Logger
Returns a new instance of Logger.
9 10 11 12 |
# File 'lib/tumugi/logger.rb', line 9 def initialize @logger = ::Logger.new(STDOUT) @logger.level = ::Logger::INFO end |
Instance Method Details
#quiet! ⇒ Object
18 19 20 |
# File 'lib/tumugi/logger.rb', line 18 def quiet! @logger = ::Logger.new(nil) end |
#verbose! ⇒ Object
14 15 16 |
# File 'lib/tumugi/logger.rb', line 14 def verbose! @logger.level = ::Logger::DEBUG end |