logger.ini Content

This file contains the configuration of the logging facility used by the lapptrack script. It use a structure similar to what’s found in Microsoft Windows INI files. See the Configuration file format section to have details about the file format.

Each python module declares its own logger module, so the logging mechanism may be finely tuned (see [logger_<module name>] section below).

Example of logger.ini

# Logging configuration section contains configuration items used by the
# logging module. See the 'Configuration file format' (docs.python.org/3/
# library/logging.config.html#configuration-file-format) to have details about
# the file format.
[loggers]
keys=root,main,dummy

[handlers]
keys=consoleHandler,logfileHandler

[formatters]
keys=standardFormatter,debugFormatter

[logger_root]
level=NOTSET
handlers=consoleHandler

[logger_main]
qualname=__main__
level=DEBUG
handlers=consoleHandler
propagate=0

[logger_dummy]
qualname=cots.dummy
level=DEBUG
handlers=consoleHandler,logfileHandler
propagate=0

[handler_consoleHandler]
class=StreamHandler
level=INFO
formatter=standardFormatter
args=(sys.stdout,)

[handler_logfileHandler]
class=FileHandler
level=DEBUG
formatter=debugFormatter
args=('${core:store}\\lapptrack.log', 'w')

[formatter_standardFormatter]
format=%(asctime)s - %(levelname)s - %(name)s - %(message)s

[formatter_debugFormatter]
format=%(asctime)s - %(levelname)s - %(name)s [%(funcName)s] - %(message)s