NAME
FusionInventory::Agent::Logger - FusionInventory logger
DESCRIPTION
This is the logger object.
As this object will mostly be instanciated one time, logger configuration is stored at the package level. So if you create a new object but without config, it will re-use the saved configuration.
METHODS
new(%params)
The constructor. The following parameters are allowed, as keys of the %params hash:
- config
-
the agent configuration object, to pass debug level and backends parameters
- backends (deprecated)
-
a list of backends to use (default: Stderr)
- verbosity (deprecated)
-
the verbosity level (default: LOG_INFO)
debug2($message)
Add a log message with debug2 level.
debug($message)
Add a log message with debug level.
info($message)
Add a log message with info level.
warning($message)
Add a log message with warning level.
error($message)
Add a log message with error level.
debug_result(%params)
Add a log message with debug level related to an action result.
debug_level()
Get current logger debug level.