See this question about sending exc_info to a log file but not to the console using Python's logging module. I want the exact same behavior, except that I'm using coloredlogs. How can I do this? Basically, if I call my_logger.error("something went wrong", exc_info=True), I want to see the stack trace in my log file but not in the console. The solution to the aforementioned question involves subclassing logging.Formatter, but when using coloredlogs, you don't access a formatter class directly. Instead, you call coloredlogs.install(), and I don't see a parameter for hiding stack traces. Continue reading...