Add log JSON formatter
This commit is contained in:
parent
4750d1c5ef
commit
3c99928a27
27 changed files with 402 additions and 41 deletions
|
@ -1,6 +1,8 @@
|
|||
import os
|
||||
import logging
|
||||
import logging.config
|
||||
|
||||
from util.log import logfile_path
|
||||
from app import app as application
|
||||
|
||||
|
||||
|
@ -12,5 +14,5 @@ import secscan
|
|||
|
||||
|
||||
if __name__ == '__main__':
|
||||
logging.config.fileConfig('conf/logging_debug.conf', disable_existing_loggers=False)
|
||||
logging.config.fileConfig(logfile_path(debug=True), disable_existing_loggers=False)
|
||||
application.run(port=5000, debug=True, threaded=True, host='0.0.0.0')
|
||||
|
|
Reference in a new issue