Class | Nanite::Log::Formatter |
In: |
lib/nanite/log/formatter.rb
|
Parent: | Logger::Formatter |
Prints a log message as ’[time] severity: message’ if Nanite::Log::Formatter.show_time == true. Otherwise, doesn‘t print the time.
Converts some argument to a Logger.severity() call to a string. Regular strings pass through like normal, Exceptions get formatted as "message (class)\nbacktrace", and other random stuff gets put through "object.inspect"