Rene Schickbauer

NAME

Maplat::Worker::Reporting - logging to database and STDOUT

SYNOPSIS

This module provides logging capabilities to Maplat workers.

DESCRIPTION

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.

Configuration

        <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

debuglog

Log a information line to stdout and to memcached.

dblog

Log a line to database.

Dependencies

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"

SEE ALSO

Maplat::Worker

AUTHOR

Rene Schickbauer, <rene.schickbauer@gmail.com>

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.