Class: Onlylogs::Formatter
- Inherits:
-
ActiveSupport::Logger::SimpleFormatter
- Object
- ActiveSupport::Logger::SimpleFormatter
- Onlylogs::Formatter
- Includes:
- ActiveSupport::TaggedLogging::Formatter
- Defined in:
- lib/onlylogs/formatter.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/onlylogs/formatter.rb', line 5 def call(severity, time, progname, msg) return nil if "Onlylogs::LogsChannel".in?(msg) = [ time.iso8601, severity[0].upcase ] str = super .size str end |