Class: StaticFM::Logger
- Inherits:
-
Object
- Object
- StaticFM::Logger
- Defined in:
- lib/static_fm.rb
Class Method Summary collapse
Class Method Details
.info(*args) ⇒ Object
12 13 14 15 |
# File 'lib/static_fm.rb', line 12 def info(*args) return nil if silent? logger.info *args end |
.logger ⇒ Object
17 18 19 |
# File 'lib/static_fm.rb', line 17 def logger @logger ||= ::Logger.new $stdout, 'w+' end |
.silence! ⇒ Object
21 22 23 |
# File 'lib/static_fm.rb', line 21 def silence! @silent = true end |
.silent? ⇒ Boolean
25 26 27 |
# File 'lib/static_fm.rb', line 25 def silent? !!@silent end |