Class: IccsSoap::CustomLogFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/iccs-soap.rb

Overview

all these nice colorful log entries are created here if you don`t like them just override its #call method

Constant Summary collapse

TIME_FORMAT =
"%Y-%m-%d %H:%M:%S."
HOST =
%x(hostname).chomp
APP =
File.basename(Dir.pwd)

Instance Method Summary collapse

Instance Method Details

#call(severity, time, progname, msg) ⇒ Object



63
64
65
66
67
68
69
# File 'lib/iccs-soap.rb', line 63

def call(severity, time, progname, msg)
  @severity = severity
  @time = time
  @progname = progname
  @msg = msg
  formatted_msg
end