I am using the python logging module with a configuration file. It is working but I would like to change the format of the output string. Currently in the config file I have a line
[formatter_fileFormatter]
format=[%(asctime)s] %(levelname)-8s %(name)-12s %(message)s
which gives me output like this
[2022-12-14 11:21:50,247] INFO my_logger.mod1 This is an info log message from func1
I would like to remove the decimal seconds. How can I do it? Ideally I would like to use the f string method of formatting, which I have read is possible but cannot find an explanation anywhere which explains how.