Class: QAT::Logger::RemoteOutputter

Inherits:
Log4r::GelfOutputter
  • Object
show all
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

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