Python Logging: Disable Output To Stdout October 27, 2023 Post a Comment I'm trying to make a program use only the SysLogHandler instance for logging and no other handlers. I expect it to not log to any files or stdout. self.logger = logging.getLoggSolution 1: You have different ways to do so:-set logger.propagate to false.you can create tour own stream, like this:https://docs.python.org/2/library/io.html#io.StringIOAnd give it to your logger.logging.StreamHandler(stream=None) Copy Share Post a Comment for "Python Logging: Disable Output To Stdout"
Post a Comment for "Python Logging: Disable Output To Stdout"