| Class | MCollective::Log |
| In: |
lib/mcollective/log.rb
|
| Parent: | Object |
A simple class that allows logging at various levels.
| VALID_LEVELS | = | [:error, :fatal, :debug, :warn, :info] |
Logs a message at a certain level, the message must be a token that will be looked up from the i18n localization database
Messages can interprolate strings from the args hash, a message with "foo %{bar}" in the localization database will use args[:bar] for the value there, the interprolation is handled by the i18n library itself