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

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, #close

Methods inherited from Notifier

#addresses, #addresses=, #disable, #enable, #host, #initialize, #notify, #notify!, #port

Constructor Details

This class inherits a constructor from GELF::Notifier