[issue16889] facilitate log output starting at beginning of line

2021-10-22 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.4 ___ Python tracker ___

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Vinay Sajip
Vinay Sajip added the comment: I agree this is a reasonable expectation, but I've not encountered this problem before. Can you provide a short script demonstrating the problem? Which platform did you encounter these problems on, and what was the logging configuration? --

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: This can happen with any standard logging configuration when there are writes to sys.stderr that don't end with \n. I'm using Mac OS X 10.7. A minimal script: import logging, unittest log = logging.getLogger() class Test(unittest.TestCase): def

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Ezio Melotti
Ezio Melotti added the comment: Note that for this specific problem you could call unittest.main(verbosity=0). -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16889 ___

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Vinay Sajip
Vinay Sajip added the comment: Oh, I see what you mean now. I guess the approach you used is straightforward, and perhaps something could be added to test.support. It's only an aesthetic thing, though, IIUC. I normally don't run into this because I log to file when running unit tests, or run

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Ezio, the use case is to add to the existing test output additional diagnostic logging. In particular, you might want to run tests even with verbosity=2 in addition to the log messages. -- ___ Python tracker

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: Yes, it's primarily for easier scanning/reading as well as aesthetic. With -v I get the following output though: test1 (test_logging.Test) ... INFO:root:setting up ok test2 (test_logging.Test) ... INFO:root:setting up ok

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Chris Jerdonek
Chris Jerdonek added the comment: and perhaps something could be added to test.support. Also, just to clarify, I had in mind outside projects and the larger community for this request rather than CPython development, so I'm not sure test.support would be the right location. --

[issue16889] facilitate log output starting at beginning of line

2013-01-08 Thread Vinay Sajip
Vinay Sajip added the comment: I had in mind outside projects and the larger community for this request Fair enough - then the best place for the specialisation of stream and handler would seem to be unittest/unittest2. So I'll add Michael Foord to the nosy list. -- nosy:

[issue16889] facilitate log output starting at beginning of line

2013-01-07 Thread Chris Jerdonek
New submission from Chris Jerdonek: In certain situations (e.g. when logging while using unittest), log messages can start in the middle of a line, for example: log: [INFO] foo .. It was trickier than I thought it needed