#1479·loguru

logger.exception error without the traceback?

Author: grheardCreated Jun 2, 2026Updated Aug 30, 2026
Labelsquestion

More of a question than an issue.

Is there a way to get the error portion of logger.exception without the traceback for a given sink?

I have an application that posts errors to a status bar and a separate sink that logs to a file. The file sink has backtrace=True and the method sink for the status bar has backtrace=False but it still receives the traceback and I would rather it still get the error description minus the traceback.