NAME

FusionInventory::Agent::Logger - Fusion Inventory logger

DESCRIPTION

This is the logger object.

METHODS

new(%params)

The constructor. The following parameters are allowed, as keys of the %params hash:

config

the agent configuration object, to be passed to backends

backends

a list of backends to use (default: Stderr)

verbosity

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.