What would be a good way to switch display format of python logging information on StreamHandler?
In a tool, I am working on, python logging information is logged into a file as well as displayed on screen. But due to standard %(asctime)s %(name)-12s %(levelname)-8s %(message)s
type format, first 30 characters are occupied by date, time and module information itself and then actual Log message comes.
I am thinking of adding the functionality such that by some key stroke I could hide the information (and also bring it back if required) i.e. something like , CTRL+A
hides the date and time display on standard output and CTRL+A
again brings it back.
I would like to hear the thoughts or pointers on how to achieve this?