1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
|
package FusionInventory::Agent::Logger::Backend;
use strict;
use warnings;
1;
__END__
=head1 NAME
FusionInventory::Agent::Logger::Backend - An abstract logger backend
=head1 DESCRIPTION
This is an abstract base classe for logger backends.
=head1 METHODS
=head2 new(%params)
The constructor. The following parameters are allowed, as keys of the $params
hashref:
=over
=item I<config>
the agent configuration object
=back
=head2 addMessage(%params)
Add a log message, with a specific level. The following arguments are allowed:
=over
=item I<level>
Can be one of:
=over
=item debug
=item info
=item error
=item fault
=back
=item I<message>
=back
|