Section: User Contributed Perl Documentation (3pm)
# Implicitly used by Log::Message to serve as handlers for # Log::Message::Item objects # Create your own file with a package called # Log::Message::Handlers to add to the existing ones, or to even # overwrite them $item->carp; $item->trace;
Log::Message::Handlers provides handlers for Log::Message::Item objects. The handler corresponding to the level (see Log::Message::Item manpage for an explanation about levels) will be called automatically upon storing the error.
If you wish to provide your own handlers, you can simply do the following:
And that is it, the handler will now be available to handle messages for you.The arguments a handler may receive are those specified by the
"extra"key, when storing the message. See the Log::Message manpage for details on the arguments.
This module by Jos Boumans <[email protected]>.
This module is copyright (c) 2002 Jos Boumans <[email protected]>. All rights reserved.
This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.
Tutoriais de Tecnologia Web