X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=plgng%2Fsettings_logging.py;h=67f51111e2cba13c71b1697b96ce4f44ded2a0b3;hb=53b5d55ae94941e7621982e56438025527fa2950;hp=de43332f8104e375c31f54cb7d0e44fc2160a152;hpb=31a37b64b769fe8b40ab753041471affe46ec5cc;p=qcg-portal.git diff --git a/plgng/settings_logging.py b/plgng/settings_logging.py index de43332..67f5111 100644 --- a/plgng/settings_logging.py +++ b/plgng/settings_logging.py @@ -29,6 +29,10 @@ LOGGING = { 'format': '[%(asctime)s] %(levelname)-8s - %(filename)s:%(lineno)s in %(funcName)s - %(message)s', 'datefmt': DATE_FORMAT, }, + 'gridftp': { + 'format': '[%(asctime)s] %(levelname)-8s - %(path)s - <%(user)s> - %(params)s - %(message)s', + 'datefmt': DATE_FORMAT, + }, }, 'filters': { 'request_filter': { @@ -79,6 +83,13 @@ LOGGING = { 'maxBytes': 1024 * 1024 * 5, # 5 MB 'formatter': 'verbose', }, + 'gridftp': { + 'level': 'DEBUG', + 'class': 'logging.handlers.RotatingFileHandler', + 'filename': os.path.join(LOGS_DIR, 'gridftp.log'), + 'maxBytes': 1024 * 1024 * 5, # 5 MB + 'formatter': 'gridftp', + }, }, 'loggers': { 'django': { @@ -104,5 +115,10 @@ LOGGING = { 'level': 'INFO', 'propagate': False, }, + 'gridftp': { + 'handlers': ['gridftp'], + 'level': 'INFO', + }, + } }