|
@@ -13,6 +13,8 @@ from . import config
|
|
|
|
|
|
# -------[ Register Logger here to enable logging before anything of this app is performed ]---------------
|
|
|
logging.getLogger().setLevel(0)
|
|
|
+if not os.path.isdir(os.path.join(os.path.expanduser("~"),".kcg")):
|
|
|
+ os.makedirs(os.path.join(os.path.expanduser("~"),".kcg"))
|
|
|
fileLogHandler = handlers.RotatingFileHandler(os.path.join(os.path.expanduser("~"),".kcg","kcg.log.full"), maxBytes=10**7, backupCount=5)
|
|
|
fileLogHandler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s: %(message)s'))
|
|
|
fileLogHandler.setLevel(0)
|