7 lines
315 B
Python
7 lines
315 B
Python
|
import logging as logger
|
||
|
from pathlib import Path
|
||
|
|
||
|
log_file = (Path(__file__).parent.parent / 'logs/hub.log').resolve()
|
||
|
logger.basicConfig(filename=log_file, format="%(asctime)s:%(levelname)s:{%(pathname)s:%(funcName)s:%(lineno)d} "
|
||
|
"- %(message)s", level=logger.DEBUG)
|