A versatile logging software module that can be used as a standalone module or easily incorporated into other modules for ISA.
Using Log::AndError is straightforward. Firstly, create an instance of the logger, and then use the logger method to record entries. For example, $self->logger(DEBUG3, 'my_sub('.join(',',@_).')') logs an entry into a subroutine. Similarly, $self->logger(ALWAYSLOG, 'Something is wrong') logs an error message when it is always desired.
The module also comes with error functions that can be inherited by a package or used independently. They are designed to promote good behavior and convenience. Furthermore, errors can be easily retrieved by calling $obj_ref->error().
Log::AndError is particularly useful for Perl modules. The logging function is the primary feature of Log::AndError, and it's seamless to use. A reference to an anonymous subroutine can direct the error output to any desired location. The module also comes with various sample subroutines for easy integration.
For effective logging, users should note that the DEBUG constants are always >= 0, while ALWAYSLOG and INFO type constants are mandatory to use. Overall, Log::AndError is an impressive tool for logging and error handling.
Version 0.99: N/A