Class: Logsly::SyslogOutput
- Inherits:
-
BaseOutput
- Object
- BaseOutput
- Logsly::SyslogOutput
- Defined in:
- lib/logsly/syslog_output.rb
Instance Attribute Summary
Attributes inherited from BaseOutput
Instance Method Summary collapse
Methods inherited from BaseOutput
Constructor Details
This class inherits a constructor from Logsly::BaseOutput
Instance Method Details
#to_appender(*args) ⇒ Object
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/logsly/syslog_output.rb', line 8 def to_appender(*args) Syslog.close if Syslog.opened? data = SyslogOutputData.new(*args, &self.build) Logging.appenders.syslog(data.identity, { :logopt => data.log_opts, :facility => data.facility, :layout => self.to_layout(data) }) end |