Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\Log\Message\Handlers.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Log::Message::Handlers - Message handlers for Log::Message</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Log::Message::Handlers - Message handlers for Log::Message</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#description">DESCRIPTION</a></li> <li><a href="#default_handlers">Default Handlers</a></li> <ul> <li><a href="#log">log</a></li> <li><a href="#carp">carp</a></li> <li><a href="#croak">croak</a></li> <li><a href="#cluck">cluck</a></li> <li><a href="#confess">confess</a></li> <li><a href="#die">die</a></li> <li><a href="#warn">warn</a></li> <li><a href="#trace">trace</a></li> </ul> <li><a href="#custom_handlers">Custom Handlers</a></li> <li><a href="#see_also">SEE ALSO</a></li> <li><a href="#author">AUTHOR</a></li> <li><a href="#acknowledgements">Acknowledgements</a></li> <li><a href="#copyright">COPYRIGHT</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <hr /> <h1><a name="name">NAME</a></h1> <p>Log::Message::Handlers - Message handlers for Log::Message</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> # Implicitly used by Log::Message to serve as handlers for # Log::Message::Item objects</pre> <pre> # Create your own file with a package called # Log::Message::Handlers to add to the existing ones, or to even # overwrite them</pre> <pre> $item->carp;</pre> <pre> $item->trace;</pre> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>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.</p> <p>Handlers may also explicitly be called on an Log::Message::Item object if one so desires (see the Log::Message manpage on how to retrieve the Item objects).</p> <p> </p> <hr /> <h1><a name="default_handlers">Default Handlers</a></h1> <p> </p> <h2><a name="log">log</a></h2> <p>Will simply log the error on the stack, and do nothing special</p> <p> </p> <h2><a name="carp">carp</a></h2> <p>Will carp (see the Carp manpage) with the error, and add the timestamp of when it occurred.</p> <p> </p> <h2><a name="croak">croak</a></h2> <p>Will croak (see the Carp manpage) with the error, and add the timestamp of when it occurred.</p> <p> </p> <h2><a name="cluck">cluck</a></h2> <p>Will cluck (see the Carp manpage) with the error, and add the timestamp of when it occurred.</p> <p> </p> <h2><a name="confess">confess</a></h2> <p>Will confess (see the Carp manpage) with the error, and add the timestamp of when it occurred</p> <p> </p> <h2><a name="die">die</a></h2> <p>Will simply die with the error message of the item</p> <p> </p> <h2><a name="warn">warn</a></h2> <p>Will simply warn with the error message of the item</p> <p> </p> <h2><a name="trace">trace</a></h2> <p>Will provide a traceback of this error item back to the first one that occurrent, clucking with every item as it comes across it.</p> <p> </p> <hr /> <h1><a name="custom_handlers">Custom Handlers</a></h1> <p>If you wish to provide your own handlers, you can simply do the following:</p> <ul> <li> <p>Create a file that holds a package by the name of <code>Log::Message::Handlers</code></p> </li> <li> <p>Create subroutines with the same name as the levels you wish to handle in the Log::Message module (see the Log::Message manpage for explanation on levels)</p> </li> <li> <p>Require that file in your program, or add it in your configuration (see the Log::Message::Config manpage for explanation on how to use a config file)</p> </li> </ul> <p>And that is it, the handler will now be available to handle messages for you.</p> <p>The arguments a handler may receive are those specified by the <code>extra</code> key, when storing the message. See the Log::Message manpage for details on the arguments.</p> <p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Log/Message.html">the Log::Message manpage</a>, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Log/Message/Item.html">the Log::Message::Item manpage</a>, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/Log/Message/Config.html">the Log::Message::Config manpage</a></p> <p> </p> <hr /> <h1><a name="author">AUTHOR</a></h1> <p>This module by Jos Boumans <<a href="mailto:kane@cpan.org">kane@cpan.org</a>>.</p> <p> </p> <hr /> <h1><a name="acknowledgements">Acknowledgements</a></h1> <p>Thanks to Ann Barcomb for her suggestions.</p> <p> </p> <hr /> <h1><a name="copyright">COPYRIGHT</a></h1> <p>This module is copyright (c) 2002 Jos Boumans <<a href="mailto:kane@cpan.org">kane@cpan.org</a>>. All rights reserved.</p> <p>This library is free software; you may redistribute and/or modify it under the same terms as Perl itself.</p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> Log::Message::Handlers - Message handlers for Log::Message</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de