NAME
Net::SinFP3::Log - base class for Log objects
SYNOPSIS
use base qw(Net::SinFP3::Log);
# Your Log module code
DESCRIPTION
This is the base class for all Net::SinFP3::Log objects.
ATTRIBUTES
- global (Net::SinFP3::Global)
-
The global object containing global parameters and pointers to currently executing plugins.
- level ($level)
-
Set log level by setting this attribute to some value.
METHODS
- new (%hash)
-
Object constructor. You must give it the following attributes: global.
- init ()
-
Do some initialization by writing this method.
- info ($message)
-
Prints $message in info mode.
- warning ($message)
-
Prints $message in warning mode.
- error ($message)
-
Prints $message in error mode.
- fatal ($message)
-
Prints $message in fatal mode and dies.
- verbose ($message)
-
Prints $message in verbose mode.
- debug ($message)
-
Prints $message in debug mode.
- post ()
-
Do some cleanup by writing this method. This is user responsibility to call this method.
AUTHOR
Patrice <GomoR> Auffret
COPYRIGHT AND LICENSE
Copyright (c) 2011-2012, Patrice <GomoR> Auffret
You may distribute this module under the terms of the Artistic license. See LICENSE.Artistic file in the source distribution archive.