Mayil-AI-Sandbox / loguru-Jan2023

MIT License
0 stars 0 forks source link

Is it possible to intercept standard logging and show fully descriptive exceptions (with better exceptions)? (hashtag603) #108

Closed vikramsubramanian closed 2 months ago

vikramsubramanian commented 2 months ago

Is it possible to set up loguru to intercept standard logging and show fully descriptive exceptions when logging through the standard logger?

I used the provided InterceptHandler code:

However, when I log through the standard logger, I don't get the fully descriptive exceptions described here:

What do I need to change to get the fully descriptive exceptions when logging through the standard logger or is this not possible?

vikramsubramanian commented 2 months ago

Closing, it was my mistake. It works.