Class: SyslogSD::Logger

Inherits:
Notifier show all
Includes:
LoggerCompatibility
Defined in:
lib/syslog-sd/logger.rb

Overview

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

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

Instance Attribute Summary

Attributes inherited from Notifier

#collect_file_and_line, #default_options, #enabled, #level, #level_mapping, #timestamp_as_float

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 SyslogSD::Notifier