Class: Logsly::Outputs::SyslogData
Instance Method Summary
collapse
Methods inherited from BaseData
#colors, #pattern, #to_pattern_opts
Constructor Details
#initialize(*args, &build) ⇒ SyslogData
Returns a new instance of SyslogData.
128
129
130
131
132
|
# File 'lib/logsly/outputs.rb', line 128
def initialize(*args, &build)
super
@log_opts = (::Syslog::LOG_PID | ::Syslog::LOG_CONS)
@facility = ::Syslog::LOG_LOCAL0
end
|
Instance Method Details
#facility(value = nil) ⇒ Object
144
145
146
147
|
# File 'lib/logsly/outputs.rb', line 144
def facility(value = nil)
@facility = value if !value.nil?
@facility
end
|
#identity(value = nil) ⇒ Object
134
135
136
137
|
# File 'lib/logsly/outputs.rb', line 134
def identity(value = nil)
@identity = value if !value.nil?
@identity
end
|
#log_opts(value = nil) ⇒ Object
139
140
141
142
|
# File 'lib/logsly/outputs.rb', line 139
def log_opts(value = nil)
@log_opts = value if !value.nil?
@log_opts
end
|