
Log::contextual is a perl module that provides an implementation-independent interface for simple data logging. it supports painless switching between any logger that implements the defined interface, either for the entire program (using set_logger) or for a given section of code (using with_logger).
the framework supports many logging levels that are enabled using environment variables (these are, in order of decreasing verbosity: trace, debug, info, warn, error, and fatal).
this package includes simple loggers that can be seamlessly upgraded to more advanced loggers, such as log::dispatchouli (see liblog-dispatchouli-perl).