Class: Anvil::Logger

Inherits:
Struct
  • Object
show all
Defined in:
lib/anvil/logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#prefixObject

Returns the value of attribute prefix

Returns:

  • (Object)

    the current value of prefix



3
4
5
# File 'lib/anvil/logger.rb', line 3

def prefix
  @prefix
end

Instance Method Details

#info(message, category = nil) ⇒ Object



4
5
6
# File 'lib/anvil/logger.rb', line 4

def info message, category = nil
  puts [timestamp, category, message].compact.join(" ")
end