1. J.A. Roberts Tunney
  2. fabulous
  3. Issues
Issue #2 new

Logging: line truncation doesn't reset colors?

slinkp
created an issue

Try this in an 80-width terminal: {{{

!python

import time, logging from fabulous import logs from fabulous.color import red, green, blue logs.basicConfig(level='WARNING')

for n in range(20): logging.debug("verbose " + str(blue("stuff")) + " you " + str(green("don't care about"))) time.sleep(0.1) logging.warning(red("something bad happened!")) for n in range(20): logging.debug("verbose " + str(blue("stuff")) + " you " + str(green("don't care about"))) time.sleep(0.1) }}}

On my system (ubuntu, gnome terminal), the output looks like this (attached)

Comments (0)

  1. Log in to comment