Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Commit

Permalink
change logging format
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondThundeR committed May 14, 2022
1 parent 5a12ae7 commit 358eb40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shikithon/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,13 @@ def __init__(self, config: Union[str, Dict[str, str]]):
logger.configure(handlers=[
{
'sink': sys.stderr,
'level': 'INFO'
'level': 'INFO',
'format': '{time} | {level} | {message}'
},
{
'sink': 'shikithon_{time}.log',
'level': 'DEBUG',
'format': '{time} | {level} | {file}.{function}: {message}',
'rotation': '1 MB',
'compression': 'zip'
},
Expand Down

0 comments on commit 358eb40

Please sign in to comment.