Class: Abril::Syslogger
- Inherits:
-
Logger::Syslog
- Object
- Logger::Syslog
- Abril::Syslogger
- Defined in:
- lib/logger/syslogger.rb
Instance Method Summary collapse
-
#initialize(app_name = nil) ⇒ Syslogger
constructor
A new instance of Syslogger.
Constructor Details
#initialize(app_name = nil) ⇒ Syslogger
Returns a new instance of Syslogger.
5 6 7 8 9 10 11 |
# File 'lib/logger/syslogger.rb', line 5 def initialize(app_name = nil) app_name ||= Rails.application.class.to_s.split('::').first super(app_name, Syslog::LOG_LOCAL7) @formatter = Abril::Formatter.new @progname = app_name Logger::Syslog.const_set :SYSLOG, self.class::SYSLOG end |