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  -  LOG::AGENT::DRIVER::SYSLOG (3)

.ds Aq ’

NAME

Log::Agent::Driver::Syslog - syslog logging driver for Log::Agent

CONTENTS

SYNOPSIS



 use Log::Agent;
 require Log::Agent::Driver::Syslog;

 my $driver = Log::Agent::Driver::Syslog->make(
     -prefix     => prefix,
     -facility   => "user",
     -showpid    => 1,
     -socktype   => "unix",
     -logopt     => "ndelay",
 );
 logconfig(-driver => $driver);



DESCRIPTION

The syslog logging driver delegates logxxx() operations to syslog() via the Sys::Syslog(3) interface.

The creation routine make() takes the following switches:
-facility => facility Tell syslog() which facility to use (e.g. user, auth, daemon). Unlike the Sys::Syslog(3) interface, the facility is set once and for all: every logging message will use the same facility.

If you wish to log something to auth for instance, then do so via Sys::Syslog directly: there is no guarantee that the application will configure its Log::Agent to use syslog anyway!

-logopt => syslog options Specifies logging options, under the form of a string containing zero or more of the words ndelay, cons or nowait.
-prefix => prefix The prefix here is syslog’s identification string.
-showpid => flag Set to true to have the PID of the process logged. It is false by default.
-socktype => (unix | inet) Specifies the logging socket type to use. The default behaviour is to use Sys:Syslog’s default.

CHANNELS

All the channels go to syslog(), of course.

AUTHOR

Raphael Manfredi <Raphael_Manfredi@pobox.com>

SEE ALSO

Log::Agent::Driver(3), Log::Agent::Channel::Syslog(3).
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 AGENT::DRIVER::SYSLOG (3) 2015-11-30

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