|
|
|
|
|
by mjbrownie
2202 days ago
|
|
I recommend repr in all log messages too. For a work Django project we have common BaseModel repr(obj) expression that can be easily converted (using regexes in loki and promtail) into a clickable admin link. So within loki (or any similar log tools) all logger.info(repr(object)) is a link straight to the admin. Worth the set up time. |
|