The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Algorithm::Genetic::Diploid::Logger - reports on progress of the experiment

METHODS

new

This singleton constructor always returns reference to same object

level

Alters log level. Takes named arguments: method provides a scalar or array of fully qualified method names whose verbosity to alter. class provides a scalar or array of package names whose verbosity to alter. level sets the verbosity to one of the levels described below.

VERBOSITY LEVELS

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.

FATAL

Only most severe messages are transmitted.

ERROR

Possibly unrecoverable errors are transmitted.

WARN

Warnings are transmitted. This is the default.

INFO

Informational messages are transmitted.

DEBUG

Everything is transmitted, including debugging messages.