MIME::Tools::Logger - an abstract logger of messages
### 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");
Lots of things happen in parsing MIME messages, and a good reporting mechanism is very useful. This class defines the abstract interface.
Instance method, abstract. Log a debugging message. The MESSAGE should not be newline-terminated. Generally, one would not see such messages operationally.
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).
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.
To install MIME::Head, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MIME::Head
CPAN shell
perl -MCPAN -e shell install MIME::Head
For more information on module installation, please visit the detailed CPAN module installation guide.