Class: Hanami::Logger::NullColorizer Private

Inherits:
Object
  • Object
show all
Defined in:
lib/hanami/logger/colorizer.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Null colorizer for logger streams that aren’t a TTY (eg. files)

Since:

  • 1.2.0

Direct Known Subclasses

Colorizer

Instance Method Summary collapse

Instance Method Details

#call(app, severity, datetime, _progname) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Since:

  • 1.2.0



15
16
17
18
19
20
21
# File 'lib/hanami/logger/colorizer.rb', line 15

def call(app, severity, datetime, _progname)
  ::Hash[
    app: app,
    severity: severity,
    time: datetime,
  ]
end