From 9b23a6525d075dba5288d8408d3be901107e6f15 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Mon, 15 Aug 2005 20:18:44 +0000 Subject: Added syslog= parameter for logging to a remote machine once we're out of the loader. --- anaconda_log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'anaconda_log.py') diff --git a/anaconda_log.py b/anaconda_log.py index 6d4ca8da1..d5ff733b1 100644 --- a/anaconda_log.py +++ b/anaconda_log.py @@ -65,13 +65,13 @@ class AnacondaLog: newLogger.setLevel(minLevel) # Add a handler for remote syslogs. - def addSysLogHandler (self, host, port=SYSLOG_UDP_PORT, + def addSysLogHandler (self, logger, host, port=SYSLOG_UDP_PORT, minLevel=DEFAULT_LEVEL): fmt = logging.Formatter("%(levelname)-8s %(message)s") syslogHandler = SysLogHandler((host, port)) syslogHandler.setLevel(minLevel) syslogHandler.setFormatter(fmt) - self.logger.addHandler(syslogHandler) + logger.addHandler(syslogHandler) logger = AnacondaLog() logger.addFileHandler (logFile, logging.getLogger("anaconda")) -- cgit