Eryq > MIME-tools-6.200_02 > MIME::Tools::Logger

Download:
MIME-tools-6.200_02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  12
Open  9
View Bugs
Report a bug
Source  

NAME ^

MIME::Tools::Logger - an abstract logger of messages

SYNOPSIS ^

The MIME::Tools::* modules are for MIME::Tools internal consumption only. The modules and their interfaces may change radically from version to version.

    ### Log messages of various types:
    $logger->debug("about to open config file");
    $logger->warning("missing config file: must create");
    $logger->error("unable to create config file");

DESCRIPTION ^

Lots of things happen in parsing MIME messages, and a good reporting mechanism is very useful. This class defines the abstract interface.

PUBLIC INTERFACE ^

debug MESSAGE...

Instance method, abstract. Log a debugging message. The MESSAGE should not be newline-terminated. Generally, one would not see such messages operationally.

warning MESSAGE...

Instance method, abstract. Log a message describing an unusual situation. The MESSAGE should not be newline-terminated.

Note that this is not the same as just using Perl's warn() facility (though a concrete subclass may choose to do that).

error MESSAGE...

Instance method, abstract. Log a message describing a problem. The MESSAGE should not be newline-terminated.

Usually, such messages signal points at which exceptions are (or would be) thrown.