Log::Any is a generic adapter for writing logging into Perl modules; this
adapter uses the Unix::Syslog module to direct that output into the standard
Unix syslog system.
This Perl module simplifies usage of Log::Any-aware modules in
applications.
Log::Any::IfLOG will load Log::Any only when LOG environment variable is true.
Otherwise, the module is not loaded and if user imports $log, a dumb object will
be returned instead that will accept any method but return false.
This is a quick-hack solution to avoid the cost of loading Log::Any under
"normal condition" (when LOG is not set to true).
This provides a Log::Dispatch log output system that appends logged
events to an array reference. This is probably only useful for testing
the logging of your code.
Mac::FileSpec::Unixish provides two functions, `nativize' and `unixify'
(both of which are exported by default), that will allow you to denote
and manipulate pathspecs in Unixish style, and let you convert these
pathspecs to and from the native OS's format for conveying such things.
It currently assumes that if you are not running under MacOS (as
reported in `$^O'), you must be on a Unix box. If you want better, use
File::Spec -- in essence, Mac::FileSpec::Unixish is a cheap hack to get
around using File::Spec.
Log::Dispatch::ArrayWithLimits functions similarly to Log::Dispatch::Array, with
a few differences:
- only the messages (strings) are stored
- allow specifying array variable name (e.g. "My::array" instead of \@My:array)
This makes it possible to use in Log::Log4perl configuration, which is a text
file.
- can apply some limits
Currently only max_elems (the maximum number of elements in the array) is
available. Future limits will be added (see "TODO").
Logging to an in-process array can be useful when debugging/testing, or when you
want to let users of your program connect to your program to request viewing the
ogs being produced.
Log::Dispatch::Colorful provides an object for logging to the screen.
Log::Dispatch::Config is a subclass of Log::Dispatch and provides a
way to configure Log::Dispatch object with configuration file
(default, in AppConfig format). This is almost a log4j equivalent for
Perl, not with all API compatibility though.
Log::Dispatch::DBI is a subclass of Log::Dispatch::Output, which
inserts logging output into relational database using DBI interface.
Log::Dispatch::Config is a wrapper for Log::Dispatch and provides a way to
configure Log::Dispatch objects with configuration files. Somewhat like a lite
version of log4j and Log::Log4perl it allows multiple log destinations. The
standard configuration file format for Log::Dispatch::Config is AppConfig.
This module plugs in to Log::Dispatch::Config and allows the use of other file
formats, in fact any format supported by the Config::Any module. As a bonus you
can also pass in a configuration data structure instead of a file name.