Class: Loga::Formatters::SimpleFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Loga::Formatters::SimpleFormatter
- Includes:
- TaggedLogging::Formatter
- Defined in:
- lib/loga/formatters/simple_formatter.rb
Constant Summary collapse
- FORMAT =
"%s, [%s #%d]%s %s\n".freeze
Instance Method Summary collapse
Methods included from TaggedLogging::Formatter
#clear_tags!, #current_tags, #pop_tags, #push_tags, #tagged
Instance Method Details
#call(severity, time, _progname, object) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/loga/formatters/simple_formatter.rb', line 8 def call(severity, time, _progname, object) FORMAT % [ severity[0..0], time.iso8601(6), Process.pid, , (object), ] end |