Class: Chef::Log::Syslog
- Inherits:
-
Logger::Syslog
- Object
- Logger::Syslog
- Chef::Log::Syslog
- Includes:
- Mixin::Unformatter
- Defined in:
- lib/chef/log/syslog.rb
Overview
Instance Attribute Summary collapse
-
#formatter ⇒ Object
Returns the value of attribute formatter.
-
#sync ⇒ Object
Returns the value of attribute sync.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(program_name = ChefUtils::Dist::Infra::CLIENT, facility = ::Syslog::LOG_DAEMON, logopts = nil) ⇒ Syslog
constructor
A new instance of Syslog.
Methods included from Mixin::Unformatter
Constructor Details
#initialize(program_name = ChefUtils::Dist::Infra::CLIENT, facility = ::Syslog::LOG_DAEMON, logopts = nil) ⇒ Syslog
Returns a new instance of Syslog.
36 37 38 39 40 41 |
# File 'lib/chef/log/syslog.rb', line 36 def initialize(program_name = ChefUtils::Dist::Infra::CLIENT, facility = ::Syslog::LOG_DAEMON, logopts = nil) super return if defined? ::Logger::Syslog::SYSLOG ::Logger::Syslog.const_set :SYSLOG, SYSLOG end |
Instance Attribute Details
#formatter ⇒ Object
Returns the value of attribute formatter.
34 35 36 |
# File 'lib/chef/log/syslog.rb', line 34 def formatter @formatter end |
#sync ⇒ Object
Returns the value of attribute sync.
34 35 36 |
# File 'lib/chef/log/syslog.rb', line 34 def sync @sync end |
Instance Method Details
#close ⇒ Object
43 |
# File 'lib/chef/log/syslog.rb', line 43 def close; end |