Suppress newline in Python logging module

If you wanted to do this you can change the logging handler terminator. I’m using Python 3.4. This was introduced in Python 3.2 as stated by Ninjakannon.

handler = logging.StreamHandler()
handler.terminator = ""

When the StreamHandler writes it writes the terminator last.

Leave a Comment