[issue34350] Non obvious logging handler behaviour

2018-08-08 Thread Vinay Sajip
Vinay Sajip added the comment: The logging module-level convenience functions are specifically there for the use of casual, short scripts where users don't want to be concerned with the details of loggers and handlers. Even if you accidentally configure logging in library code because you ty

[issue34350] Non obvious logging handler behaviour

2018-08-08 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue34350] Non obvious logging handler behaviour

2018-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: The behaviour is long-standing and documented, in the note just under this entry: https://docs.python.org/3/library/logging.html?highlight=logging#logging.log But I do agree that it's surprising and (at least for me) undesirable behaviour, in that it makes

[issue34350] Non obvious logging handler behaviour

2018-08-06 Thread Sebastian
New submission from Sebastian : In Python 3.6.3 I can do: import logging logger = logging.getLogger() logger.setLevel(logging.INFO) logger.info("this does not work") logging.info("PARTY") logger.info("this works") And it outputs: INFO:root:PARTY INFO:root:this works The line logging.info("