Class: Logstop::Formatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Logstop::Formatter
- Defined in:
- lib/logstop/formatter.rb
Instance Method Summary collapse
- #call(severity, timestamp, progname, msg) ⇒ Object
-
#initialize(formatter = nil, ip: false) ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize(formatter = nil, ip: false) ⇒ Formatter
5 6 7 8 |
# File 'lib/logstop/formatter.rb', line 5 def initialize(formatter = nil, ip: false) @formatter = formatter || ::Logger::Formatter.new @ip = ip end |