Class: Janus::Logging::Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/janus-ar/logging/logger.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject

Returns the value of attribute logger.



11
12
13
# File 'lib/janus-ar/logging/logger.rb', line 11

def logger
  @logger
end

Class Method Details

.log(message, format = :info) ⇒ Object



7
8
9
# File 'lib/janus-ar/logging/logger.rb', line 7

def log(message, format = :info)
  logger&.send(format, "[Janus] #{message}")
end