Skip to content
Snippets Groups Projects
Commit 75f6a1fb authored by Anton Gusev's avatar Anton Gusev
Browse files

add settings for logging module

parent 91462a39
No related branches found
No related tags found
5 merge requests!5Develop,!4Develop,!3Develop,!2Develop,!1Develop
# -*- coding: utf-8 -*-
import logging
from dotenv import load_dotenv
import os
......@@ -102,3 +103,13 @@ CONNECTION_STRING = "{drivername}://{user}:{passwd}@{host}:{port}/{db_name}?char
port=os.getenv('DB_PORT'),
db_name=os.getenv('DB_DATABASE'),
)
# Logger config
LOG_FILE = '../log/all.log'
LOG_ENABLED = True
LOG_LEVEL = logging.DEBUG
LOG_FORMAT = '%(asctime)s - %(levelname)s - %(name)s : \n\t %(message)s'
# LOG_DATEFORMAT
LOG_STDOUT = False
LOG_SHORT_NAMES = False
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment