Ganesh Pal <ganesh1...@gmail.com> writes: > The below program logs all the messages to the log file and displays the > same on the console . > > Please suggest how do I ensure that error and warning log levels go ONLY to > stdout and/or stder
You read the handler related documentation of the logging module. When I remember right, you will find there a method allowing you to control which message levels are handled by the the respective handler. -- https://mail.python.org/mailman/listinfo/python-list