GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  EVENT::RPC::LOGGER (3)

.ds Aq ’

NAME

Event::RPC::Logger - Logging facility for Event::RPC

CONTENTS

SYNOPSIS



  use Event::RPC::Server;
  use Event::RPC::Logger;
 
  my $server = Event::RPC::Server->new (
      ...
      logger => Event::RPC::Logger->new(
          filename  => "/var/log/myserver.log",
          fh_lref   => [ $fh, $sock ],
          min_level => 2,
      ),
      ...
  );

  $server->start;



DESCRIPTION

This modules implements a simple logging facility for the Event::RPC framework. Log messages may be written to a specific file and/or a bunch of filehandles, which may be sockets as well.

CONFIGURATION OPTIONS

This is a list of options you can pass to the new() constructor:
<B>filenameB> All log messages are appended to this file.
<B>fh_lrefB> All log messages are printed into this list of filehandles.
<B>min_levelB> This is the minimum log level. Output of messages with a lower level is suppressed. This option may be altered using set_min_level() even in a running server.

METHODS

$logger-><B>logB> ( [$level, ] $msg ) The log() method does the actual logging. Called with one argument the messages gets the default level of 1. With two argumens the first is the level for the message.
$logger-><B>add_fhB> ( $fh ) This adds a filehandle to the internal list of filhandles all log messages are written to.
$logger-><B>remove_fhB> ( $fh ) Removes a filehandle.

AUTHORS



  Joern Reder <joern at zyn dot de>



COPYRIGHT AND LICENSE

Copyright (C) 2002-2006 by Joern Reder, All Rights Reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

POD ERRORS

Hey! <B>The above document had some coding errors, which are explained below:B>
Around line 201: Non-ASCII character seen before =encoding in ’Joern’. Assuming ISO8859-1
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 EVENT::RPC::LOGGER (3) 2009-04-22

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.