Log::Any::Adapter::Daemontools - Logging adapter suitable for use in a Daemontools-style logging chain
version 0.0000_00
This is a small simple module that writes logging messages to STDERR, prefixing each line with an identifier like "error: ", "warning: ", etc.
For the Debug and Trace log levels, it additionally wraps the message with an eval {}, and converts any non-scalar message parts into strings using Data::Dumper or similar. This allows debug messages to dump objects without worry that the stringification would cause a fatal exception.
All other log levels are considered "important" such that you want the exception if they fail, and arguments are converted to strings howver they normally would if you tried printing them, on the assumption that if you print an object in the course of normal logging then you probably want the natural stringification for that type of object.
Michael Conrad <mike@nrdvana.net>
This software is copyright (c) 2014 by Michael Conrad.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Log::Any::Adapter::Daemontools, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::Any::Adapter::Daemontools
CPAN shell
perl -MCPAN -e shell install Log::Any::Adapter::Daemontools
For more information on module installation, please visit the detailed CPAN module installation guide.