Module: Kryten::Lawger
- Included in:
- Task
- Defined in:
- lib/kryten/lawger.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
4 5 6 |
# File 'lib/kryten/lawger.rb', line 4 def logger @logger end |
Instance Method Details
#default_log_format ⇒ Object
19 20 21 |
# File 'lib/kryten/lawger.rb', line 19 def default_log_format nil end |
#log(message) ⇒ Object
10 11 12 13 |
# File 'lib/kryten/lawger.rb', line 10 def log default_log_format logger.debug(name) { } end |
#log_path ⇒ Object
6 7 8 |
# File 'lib/kryten/lawger.rb', line 6 def log_path "log/#{name}.log" end |