Class: QAT::Logger::RemoteOutputter
- Inherits:
-
Log4r::GelfOutputter
- Object
- Log4r::GelfOutputter
- QAT::Logger::RemoteOutputter
- Defined in:
- lib/qat/logger/outputter/remote.rb,
lib/qat/logger/outputter/remote/message.rb
Overview
This class represents a generic remote output handler
Defined Under Namespace
Classes: Message
Instance Method Summary collapse
-
#format(value) ⇒ Object
Formats the
value
to be logged. -
#initialize(name, hash = {}) ⇒ RemoteOutputter
constructor
Creates a output handler for remote logging using GELF, named
name
with a an optionshash
.
Constructor Details
#initialize(name, hash = {}) ⇒ RemoteOutputter
Creates a output handler for remote logging using GELF, named name
with a an options hash
.
Default options are:
-
‘mapped_context_prefix’ = ”
See Log4r::GelfOutputter
17 18 19 |
# File 'lib/qat/logger/outputter/remote.rb', line 17 def initialize name, hash = {} super name, { 'mapped_context_prefix' => '' }.merge(hash) end |
Instance Method Details
#format(value) ⇒ Object
Formats the value
to be logged.
23 24 25 |
# File 'lib/qat/logger/outputter/remote.rb', line 23 def format(value) super(value) end |