Loguru: log trace

Created on 29 Dec 2018  路  1Comment  路  Source: Delgan/loguru

there is only debug available not trace?

see also https://bugs.python.org/issue31732

question

Most helpful comment

Hi @benjyz.

As evoked in the features presentation, Loguru provides two additional levels (compared to the standard library): trace() and success().

So you can use logger.trace("Your message") and it should work (but don't forget to set the handler level adequately otherwise logs will ne be displayed).

You can also add custom levels or modify existing ones using the .level() method.

>All comments

Hi @benjyz.

As evoked in the features presentation, Loguru provides two additional levels (compared to the standard library): trace() and success().

So you can use logger.trace("Your message") and it should work (but don't forget to set the handler level adequately otherwise logs will ne be displayed).

You can also add custom levels or modify existing ones using the .level() method.

Was this page helpful?
0 / 5 - 0 ratings