# File lib/logging/appenders/syslog.rb, line 95 def initialize( name, opts = {} ) @ident = opts.getopt(:ident, name) @logopt = opts.getopt(:logopt, (LOG_PID | LOG_CONS), :as => Integer) @facility = opts.getopt(:facility, LOG_USER, :as => Integer) @syslog = ::Syslog.open(@ident, @logopt, @facility) # provides a mapping from the default Logging levels # to the syslog levels @map = [LOG_DEBUG, LOG_INFO, LOG_WARNING, LOG_ERR, LOG_CRIT] map = opts.getopt(:map) self.map = map unless map.nil? super end