We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9d1d0e commit 178808eCopy full SHA for 178808e
server/utils/log.py
@@ -1,8 +1,6 @@
1
import logging
2
import os
3
import syslog
4
-
5
-logging.basicConfig(filename='Hawkeye.log', level=logging.INFO)
6
7
-logger = logging.getLogger()
8
+FORMAT = '%(asctime)s [%(name)s] [%(levelname)s] [%(pathname)s:%(lineno)s %(funcName)s] %(message)s'
+logging.basicConfig(filename='Hawkeye.log', level=logging.INFO,format=FORMAT)
+logger = logging.getLogger()
0 commit comments