Class: MyLogger
- Inherits:
-
Object
- Object
- MyLogger
- Defined in:
- lib/lib/mylogger.rb
Overview
Class For Log to /var/log/system.log
Constant Summary collapse
- Version =
"0.0.1"
Class Method Summary collapse
-
.ln(message) ⇒ Object
log notice.
-
.lw(message) ⇒ Object
log warning.
Class Method Details
.ln(message) ⇒ Object
log notice
13 14 15 16 17 |
# File 'lib/lib/mylogger.rb', line 13 def self.ln() self.before Syslog.log(Syslog::LOG_NOTICE, "%s", ) self.after end |
.lw(message) ⇒ Object
log warning
21 22 23 24 25 |
# File 'lib/lib/mylogger.rb', line 21 def self.lw() self.before Syslog.log(Syslog::LOG_WARNING, "%s", ) self.after end |