Website hosting service by Active-Venture.com
  

 Back to Index

6.28.2.6 SysLogHandler

The SysLogHandler class supports sending logging messages to a remote or local Unix syslog.

 

 
class SysLogHandler( [address[, facility]])
Returns a new instance of the SysLogHandler class intended to communicate with a remote Unix machine whose address is given by address in the form of a (host, port) tuple. If address is not specified, ('localhost', 514) is used. The address is used to open a UDP socket. If facility is not specified, LOG_USER is used.

 

 
close( )
Closes the socket to the remote host.

 

 
emit( record)
The record is formatted, and then sent to the syslog server. If exception information is present, it is not sent to the server.

 

 
encodePriority( facility, priority)
Encodes the facility and priority into an integer. You can pass in strings or integers - if strings are passed, internal mapping dictionaries are used to convert them to integers.
 

  

 

© 2002-2004 Active-Venture.com Webhosting Service

 

Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to http://python.org/doc/

 

Domain registration : Buy domain name or register domain name from $5.95/year only

 

Cheap domain registration : Register domain name or buy domain name, including free domain hosting services

 
  Active-Domain.com offers cheap domain registration, domain name transfer and domain search services