Class: ARSendmailLogger
- Inherits:
-
Logger
- Object
- Logger
- ARSendmailLogger
- Defined in:
- lib/ar_sendmail_logger.rb
Instance Method Summary collapse
- #format_message(severity, timestamp, progname, message) ⇒ Object
-
#initialize(path) ⇒ ARSendmailLogger
constructor
A new instance of ARSendmailLogger.
Constructor Details
#initialize(path) ⇒ ARSendmailLogger
Returns a new instance of ARSendmailLogger.
5 6 7 8 |
# File 'lib/ar_sendmail_logger.rb', line 5 def initialize(path) FileUtils.mkdir_p(File.dirname(path)) super(path) end |
Instance Method Details
#format_message(severity, timestamp, progname, message) ⇒ Object
10 11 12 |
# File 'lib/ar_sendmail_logger.rb', line 10 def (severity, , progname, ) "#{}\n" end |