I'm trying to set the python logging format, but it seems to ignore my config settings. Is there something to do with hierarchy of loggers that I don't understand?
I have something like
import logging
logging.basicConfig(format='%(message)s')
but all the logs still come out with timecode etc.
I read somewhere about how logging format is inherited.
I've tried adding this to many different files in case somehow the first encounter with a logging config sets it for the whole session.
The only way I can get this to stick is creating a custom logger in every file, which is tedious with like:
logger = logging.getLogger('name')
# then configure and use logger.info() etc.
Trivial thing, but this has bugged me for a long time! Working on cluttered remote shells where I want to get rid of all the time code guff.