FusionInventory::Agent::Logger(3)

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)

debug
    a flag allowing debug messages (default: false)

  log(%params)
Add a log message, with a specific level. %params is an hash, with the following keys:

level
    Can be one of:

    debug
    info
    error
    fault
message

  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.

  error($message)
Add a log message with error level.

  fault($message)
Add a log message with fault level.