Class: GitCommander::Logger::SimpleFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/git_commander/logger.rb

Overview

Simple formatter which only displays the message.

Instance Method Summary collapse

Instance Method Details

#call(severity, _timestamp, _progname, msg) ⇒ Object

This method is invoked when a log event occurs



20
21
22
# File 'lib/git_commander/logger.rb', line 20

def call(severity, _timestamp, _progname, msg)
  "#{severity}: #{String === msg ? msg : msg.inspect}\n"
end