Skip to content

Instantly share code, notes, and snippets.

@sokripon
Last active March 2, 2022 12:31
Show Gist options
  • Save sokripon/a687eb4b053fe53de7f93fc22c769acb to your computer and use it in GitHub Desktop.
Save sokripon/a687eb4b053fe53de7f93fc22c769acb to your computer and use it in GitHub Desktop.
Ideolog pycharm python loguru

Simple Ideolog settings to work with the python loguru library

Sadly there is no convenient way to import/export Ideolog settings, so I will just have images and regexes in here.

How it looks

View

Image of the settings

pycharm settings logformat details

Details

Message pattern: (\d+-\d+-\d+\s\d+:\d+:\d+\.\d+)\s+\|\s+(\w+)\s+\|\s+((\w+):([<>\w]+:\d+))\s+-\s+(.*)$
Message start pattern: ^\d
Time format: yyyy-MM-dd HH:mm:ss.SSS
Time capture group: 1
Severity capture group: 2
Category capture group: 3

^\s*e(rror)?\s*$
^\s*w(arn(ing)?)?\s*$
^\s*i(nfo)?\s*$
^\s*d(ebug)?\s*$
^\s*c(ritical)?\s*$	
(\d+-\d+-\d+\s\d+:\d+:\d+\.\d+)
^\s*s(uccess)?\s*$
^(\w+):([<>\w]+:\d+)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment