Class: Thrifty::Logger::LogfmtFormatter
- Inherits:
-
Object
- Object
- Thrifty::Logger::LogfmtFormatter
- Defined in:
- lib/thrifty/logger/formatters/logfmt_formatter.rb
Direct Known Subclasses
Constant Summary collapse
- UNESCAPED_STRING =
/\A[\w\.\-\+\%\,\:\;\/]*\z/i- IGNORED_FIELDS =
[:time]
Instance Method Summary collapse
Instance Method Details
#call(entry) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/thrifty/logger/formatters/logfmt_formatter.rb', line 8 def call(entry) case entry when ExceptionEntry format_exception(entry) when Entry format_entry(entry) else [entry_or_ex.to_s] end end |