I don't know why this code prints to the screen, but not to the file? File "example1.log" is created, but nothing is written there.
logging.debug('This message should go to the log file
and to the console')
logging.info('So should this')
logging.warning('And this, too')
I have "bypassed" this problem by creating a logging object (example code), but it keeps bugging me why basicConfig() approach failed?
PS. If I change basicConfig call to:
Then all logs are in the file and nothing is displayed in the console