API - add log file
This commit is contained in:
@ -15,6 +15,12 @@ bcrypt = Bcrypt()
|
||||
migrate = Migrate()
|
||||
email_service = Email()
|
||||
dramatiq = Dramatiq()
|
||||
log_file = os.getenv('APP_LOG')
|
||||
logging.basicConfig(
|
||||
filename=log_file,
|
||||
format='%(asctime)s - %(name)s - %(levelname)s - ' '%(message)s',
|
||||
datefmt='%Y/%m/%d %H:%M:%S',
|
||||
)
|
||||
appLog = logging.getLogger('fittrackee')
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user