Package pyanaconda :: Module anaconda_log :: Class AnacondaSyslogHandler
[hide private]
[frames] | no frames]

Class AnacondaSyslogHandler

source code

            object --+            
                     |            
      logging.Filterer --+        
                         |        
           logging.Handler --+    
                             |    
logging.handlers.SysLogHandler --+
                                 |
                                AnacondaSyslogHandler

Instance Methods [hide private]
 
__init__(self, address=('localhost',SYSLOG_UDP_PORT), facility=SysLogHandler.LOG_USER, tag='')
Initialize a handler.
source code
 
emit(self, record)
Emit a record.
source code

Inherited from logging.handlers.SysLogHandler: close, encodePriority, mapPriority

Inherited from logging.handlers.SysLogHandler (private): _connect_unixsocket

Inherited from logging.Handler: acquire, createLock, flush, format, get_name, handle, handleError, release, setFormatter, setLevel, set_name

Inherited from logging.Filterer: addFilter, filter, removeFilter

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from logging.handlers.SysLogHandler: LOG_ALERT, LOG_AUTH, LOG_AUTHPRIV, LOG_CRIT, LOG_CRON, LOG_DAEMON, LOG_DEBUG, LOG_EMERG, LOG_ERR, LOG_FTP, LOG_INFO, LOG_KERN, LOG_LOCAL0, LOG_LOCAL1, LOG_LOCAL2, LOG_LOCAL3, LOG_LOCAL4, LOG_LOCAL5, LOG_LOCAL6, LOG_LOCAL7, LOG_LPR, LOG_MAIL, LOG_NEWS, LOG_NOTICE, LOG_SYSLOG, LOG_USER, LOG_UUCP, LOG_WARNING, facility_names, log_format_string, priority_map, priority_names

Inherited from logging.Handler: name

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, address=('localhost',SYSLOG_UDP_PORT), facility=SysLogHandler.LOG_USER, tag='')
(Constructor)

source code 

Initialize a handler.

If address is specified as a string, a UNIX socket is used. To log to a local syslogd, "SysLogHandler(address="/dev/log")" can be used. If facility is not specified, LOG_USER is used.

Overrides: object.__init__
(inherited documentation)

emit(self, record)

source code 

Emit a record.

The record is formatted, and then sent to the syslog server. If exception information is present, it is NOT sent to the server.

Overrides: logging.Handler.emit
(inherited documentation)