Dancer::Logger::LogAny - Use Log::Any to control logging from your Dancer app
version 0.002
This module implements a logger engine that send log messages through Log::Any.
Log::Any
The setting logger should be set to LogAny in order to use this logger engine in a Dancer application.
LogAny
If you provide Dancer::Logger::LogAny with a category, it will use that for any logging done through the Dancer logging functions, like so:
Dancer::Logger::LogAny
category
Dancer
LogAny: category: Wombats
Dancer::Logger::LogAny lets you do very simple configuration of the logger from your config files---simply encode the parameters for Log::Any::Adapter->set as an array named logger, like so:
Log::Any::Adapter->set
logger
LogAny: logger: - Syslog - name - 'my-web-app'
For more sophisticated usage, you may wish to use Log::Any::Adapter->set directly.
The init method is called by Dancer when creating the logger engine with this class. It will initiate a Log::Any logger using the possibly supplied category.
This module depends on Log::Any.
Michael Alan Dorman <mdorman@ironicdesign.com>
This software is copyright (c) 2012 by Michael Alan Dorman.
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 Dancer::Logger::LogAny, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer::Logger::LogAny
CPAN shell
perl -MCPAN -e shell install Dancer::Logger::LogAny
For more information on module installation, please visit the detailed CPAN module installation guide.