Module: Kryten::Lawger

Included in:
Task
Defined in:
lib/kryten/lawger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

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_formatObject



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 message
  default_log_format
  logger.debug(name) { message }
end

#log_pathObject



6
7
8
# File 'lib/kryten/lawger.rb', line 6

def log_path
  "log/#{name}.log"
end