Algorithm::Genetic::Diploid::Logger - reports on progress of the experiment
This singleton constructor always returns reference to same object
Alters log level. Takes named arguments:
methodprovides a scalar or array of fully qualified method names whose verbosity to alter.
classprovides a scalar or array of package names whose verbosity to alter.
levelsets the verbosity to one of the levels described below.
Alters log string formatter. When argument is 'simple' the log string is just the logging level and message, when argument is 'verbose', the log string has the calling subroutine name and location in it. 'medium' omits the file location. When the argument is a code reference, this reference is executed for every log message, with the following named arguments:
'level' => (DEBUG|INFO|WARN|ERROR|FATAL) 'sub' => fully qualified name of the calling subroutine 'file' => path to the calling file 'line' => line number from whence the call was made 'msg' => the log message
The following constants are available when using this package with the use qualifier ':levels', i.e.
use Algorithm::Genetic::Diploid::Logger ':levels';. They represent different verbosity levels that can be set globally, and/or at package level, and/or at method level.
Only most severe messages are transmitted.
Possibly unrecoverable errors are transmitted.
Warnings are transmitted. This is the default.
Informational messages are transmitted.
Everything is transmitted, including debugging messages.