Commit a588fe94 authored by Daniel Armbruster's avatar Daniel Armbruster Committed by thomas.forbriger
Browse files

default logging.NullHandler() for csback logging module in...

default logging.NullHandler() for csback logging module in source:tfsoftware/trunk/src/python/csback/csbacklog.py

This is a legacy commit from before 2015-05-18.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.

SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4366
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent b3dd3e90
......@@ -58,8 +58,9 @@ class CsbackLog :
def __init__(self, applicationName):
self.applicationName = applicationName
self.logger = logging.getLogger(applicationName)
self.logger.setLevel(logging.DEBUG)
self.logger.addHandler(logging.NullHandler())
self.csbacklogger = logging.LoggerAdapter(self.logger, CsbackLog.logInfo)
self.csbacklogger.setLevel(logging.DEBUG)
csfile.csfileLogInfo = CsbackLog.logInfo
csfile.csfileLoggerName = str(applicationName)+'.csfile'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment