Module: Logger
- Defined in:
- lib/postpolicy/logger.rb
Constant Summary collapse
- @@app_name =
"rpolicy"- @@log_opts =
(Syslog::LOG_PID | Syslog::LOG_CONS)
- @@facility =
Syslog::LOG_MAIL
Class Method Summary collapse
Class Method Details
.debug(msg) ⇒ Object
18 19 20 |
# File 'lib/postpolicy/logger.rb', line 18 def self.debug( msg ) Syslog.debug( msg ) end |
.error(msg) ⇒ Object
10 11 12 |
# File 'lib/postpolicy/logger.rb', line 10 def self.error( msg ) Syslog.err( msg ) end |
.info(msg) ⇒ Object
14 15 16 |
# File 'lib/postpolicy/logger.rb', line 14 def self.info( msg ) Syslog.info( msg ) end |
.warn(msg) ⇒ Object
22 23 24 |
# File 'lib/postpolicy/logger.rb', line 22 def self.warn( msg ) Syslog.warning( msg ) end |