Class: GELF::Logger

Inherits:
Notifier show all
Includes:
LoggerCompatibility
Defined in:
lib/gelf/logger.rb

Overview

Graylog2 notifier, compatible with Ruby Logger. You can use it with Rails like this:

config.logger = GELF::Logger.new("localhost", 12201, "WAN", { :facility => "appname" })
config.colorize_logging = false

Constant Summary

Constants inherited from Notifier

Notifier::MAX_CHUNKS, Notifier::MAX_CHUNK_SIZE_LAN, Notifier::MAX_CHUNK_SIZE_WAN

Instance Attribute Summary

Attributes included from LoggerCompatibility

#formatter

Attributes inherited from Notifier

#collect_file_and_line, #default_options, #enabled, #level, #level_mapping, #max_chunk_size, #rescue_network_errors

Method Summary

Methods included from LoggerCompatibility

#<<, #add

Methods inherited from Notifier

#addresses, #addresses=, #close, #disable, #enable, #initialize, #notify, #notify!

Constructor Details

This class inherits a constructor from GELF::Notifier