Class: Kuroko2::Util::Logger::LoggerFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Kuroko2::Util::Logger::LoggerFormatter
- Defined in:
- lib/autoload/kuroko2/util/logger.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, timestamp, progname, msg) ⇒ Object
11 12 13 14 15 |
# File 'lib/autoload/kuroko2/util/logger.rb', line 11 def call(severity, , progname, msg) location = caller_locations(4, 1).first "%s %-5s - %s: %s\n" % [.iso8601, severity, location.label, msg] end |