new awesome build
This commit is contained in:
12
APP_PROFILER/utils/logging.py
Normal file
12
APP_PROFILER/utils/logging.py
Normal file
@@ -0,0 +1,12 @@
|
||||
import logging
|
||||
import sys
|
||||
|
||||
def setup_logging():
|
||||
logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
||||
handlers=[
|
||||
logging.StreamHandler(sys.stdout),
|
||||
logging.FileHandler("profiler.log")
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user