Class HostMap::MyLogger
In: lib/logging.rb
Parent: Logger::Formatter

hostmap custom pretty logger.

Methods

call  

Public Instance methods

Provide a call() method that returns the formatted message.

[Source]

# File lib/logging.rb, line 13
    def call(severity, time, program_name, message)
      datetime = time.strftime("%Y-%m-%d %H:%M")
      print_message = "[#{datetime}] #{String(message)}"
      [ print_message ].join("\n") + "\n"
    end

[Validate]