/usr/share/kayali/log.py is in kayali 0.3.2-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | import os, logging.config
from configuration import config
__initialised=False
def initialise(reInitialise=False):
global __initialised
initLogger()
__initialised = True
def initLogger():
loggingFile = os.path.join(config["settingsdir"],"logging.ini")
if not os.path.isfile(loggingFile):
loggingFile = os.path.join(config["kayalidir"],"logging.ini")
print "configure logger with logging.ini: %s" % loggingFile
try:
logging.config.fileConfig(loggingFile)
except:
logging.basicConfig(level=logging.DEBUG)
initialise()
|