Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Agent::Channel::SyslogUser Contributed Perl DocumentaAgent::Channel::Syslog(3)

NAME
       Log::Agent::Channel::Syslog - syslog logging channel for
       Log::Agent::Logger

SYNOPSIS
	require	Log::Agent::Channel::Syslog;

	my $channel = Log::Agent::Channel::Syslog->make(
	    # Specific attributes
	    -prefix	=> prefix,
	    -facility	=> "user",
	    -showpid	=> 1,
	    -socktype	=> "unix",
	    -logopt	=> "ndelay",
	);

DESCRIPTION
       The syslog logging channels directs 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 message logged through this channel
	   will	use the	same facility.

       "-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.

AUTHOR
       Raphael Manfredi	_Raphael_Manfredi@pobox.com_

SEE ALSO
       Log::Agent::Logger(3).

perl v5.32.0			  2017-10-27	     Agent::Channel::Syslog(3)

NAME | SYNOPSIS | DESCRIPTION | AUTHOR | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Log::Agent::Channel::Syslog&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help