mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
use log format that allows clickable link to code source in PyCharm
This commit is contained in:
parent
39c92110cb
commit
3768429909
1 changed files with 3 additions and 2 deletions
|
@ -8,7 +8,8 @@ from app.config import (
|
|||
COLOR_LOG,
|
||||
)
|
||||
|
||||
_log_format = "%(asctime)s - %(name)s - %(levelname)s - %(process)d - %(module)s:%(lineno)d - %(funcName)s - %(message)s"
|
||||
# this format allows clickable link to code source in PyCharm
|
||||
_log_format = '%(asctime)s - %(name)s - %(levelname)s - "%(pathname)s:%(lineno)d" - %(funcName)s() - %(message)s'
|
||||
_log_formatter = logging.Formatter(_log_format)
|
||||
|
||||
|
||||
|
@ -47,4 +48,4 @@ log.disabled = True
|
|||
logging.Logger.d = logging.Logger.debug
|
||||
logging.Logger.i = logging.Logger.info
|
||||
|
||||
LOG = _get_logger("sl")
|
||||
LOG = _get_logger("SL")
|
||||
|
|
Loading…
Reference in a new issue