Class: StatsCollect::Notifiers::LogFile
- Inherits:
-
Object
- Object
- StatsCollect::Notifiers::LogFile
- Defined in:
- lib/StatsCollect/Notifiers/LogFile.rb
Instance Method Summary collapse
-
#send_notification(iConf, iMessage) ⇒ Object
Send a given notification.
Instance Method Details
#send_notification(iConf, iMessage) ⇒ Object
Send a given notification
- Parameters
-
iConf (map<Symbol,Object>): The notifier config
-
iMessage (String): Message to send
17 18 19 20 21 |
# File 'lib/StatsCollect/Notifiers/LogFile.rb', line 17 def send_notification(iConf, iMessage) File.open(iConf[:log_file], (iConf[:Append] == true) ? 'a' : 'w') do |oFile| oFile.write(iMessage) end end |