Log::Agent::Driver::Default3pm
Default logging driver for log::agent
Usage
# Implicit useuse Log::Agent;logconfig(-prefix => "prefix"); # optional# Explicit useuse Log::Agent;require Log::Agent::Driver::Default;my $driver = Log::Agent::Driver::Default->make("prefix");logconfig(-driver => $driver);
Overview
The default logging driver remaps the logxxx() operations to their default Perl counterpart. For instance, logerr() will issue a warn() and logwarn() will call warn() with a clear "WARNING: " emphasis (to distinguish between the two calls).
The only routine of interest here is the creation routine:
- make($prefix)
-
Create a Log::Agent::Driver::Default driver whose prefix string will be
$prefix. When no prefix is configured, the first letter of each logged string will be uppercased.
Channels
The "error", "output" and "debug" channels all go to STDERR.
Releases
12 releases since Debian 3.0 (Woody); the text changed 7 times.