logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Log::Dispatch::Handle - Object for logging to IO::Handle classes

Author

       Dave Rolsky <autarch@urth.org>

Constructor

       The constructor takes the following parameters in addition to the standard parameters documented in
       Log::Dispatch::Output:

       •   handle ($)

           The handle object. This object must implement a "print()" method.

Description

       This module supplies a very simple object for logging to some sort of handle object. Basically, anything
       that implements a "print()" method can be passed the object constructor and it should work.

Name

       Log::Dispatch::Handle - Object for logging to IO::Handle classes

Source

       The       source      code      repository      for      Log-Dispatch      can      be      found      at
       <https://github.com/houseabsolute/Log-Dispatch>.

Support

       Bugs may be submitted at <https://github.com/houseabsolute/Log-Dispatch/issues>.

Synopsis

         use Log::Dispatch;

         my $log = Log::Dispatch->new(
             outputs => [
                 [
                     'Handle',
                     min_level => 'emerg',
                     handle    => $io_socket_object,
                 ],
             ]
         );

         $log->emerg('I am the Lizard King!');

Version

       version 2.71

See Also