- SEE ALSO
- COPYRIGHT AND LICENSE
Maplat::Worker::Reporting - logging to database and STDOUT
This module provides logging capabilities to Maplat workers.
This module provides logging to database (table "errors"). Also, logging to STDOUT is provided via debuglog() with current date and time prefixed to the logline. This debuglog lines are also "logged" via the Memcache worker module so the last few lines of STDOUT can also be visualized in the WebGUI.
<module> <modname>reporting</modname> <pm>Reporting</pm> <options> <db>maindb</db> <mail>sendmail</mail> <memcache>memcache</memcache> <email>0</email> <std_out>1</std_out> <maxlines>60</maxlines> <worker>MyWorker</worker> </options> </module>
email (boolean) send errors logged by log() via email (via worker module Sendmail) std_out (boolean) send debuglog() to stdout maxlines how many lines are copied to memcache worker name which is used in logging to memcache
Log a information line to stdout and to memcached.
Log a line to database.
This module depends on the following modules beeing configured (the 'as "somename"' means the key name in this modules configuration):
Maplat::Worker::PostgresDB as "db" Maplat::Worker::Memcache as "memcache" Maplat::Worker::Sendmail as "mail"
Rene Schickbauer, <firstname.lastname@example.org>
COPYRIGHT AND LICENSE
Copyright (C) 2008-2011 by Rene Schickbauer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.