a ref hash is passed with some keys ; besides keys specifically related to the logging
class used, some keys are (or should be) understood by all clases.
|name()||returns the name as string of the logging modules|
|setup_channel(SOURCE,TYPE,DATA)||prepare for a new channel of data comming from SOURCE (package name), of TYPE ; DATA is a ref hash of additional parameter, such as filenames, etc.|
|output(LEVEL,TYPE,DATA1,DATA2,...)||add data to channel type TYPE at level LEVEL (debug, info, notice, etc.) ; DATA is a ref hash with all data to log or a simple string (the message) ; the logging module should know what to do with it and how to format it (which may depend on the TYPE attribute, which itself is tied to the SOURCE attribute of setup_channel()).|
See the new() method.
This module has to be used inside the Net::DRI framework and needs the following components:
Net::DRI::BaseClass Net::DRI::Util Net::DRI::Exception
No known bugs. Please report problems to author (see below) or use CPAN RT system. Patches are welcome.
Other subclasses should be created to cater for other logging destinations (such as a RDBMS).
Net::DRI expects these logging modules to be non-blocking and returning immediately.
For now, support questions should be sent to:
Please also see the SUPPORT file in the distribution.
Patrick Mevzek, <email@example.com>
Copyright (c) 2009,2010 Patrick Mevzek <firstname.lastname@example.org>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
See the LICENSE file that comes with this distribution for more details.
|perl v5.20.3||NET::DRI::LOGGING (3)||2010-03-25|