I am using the logging module from Python and I need to get information about the starting and ending time of different functions calls. For this, I am currently using
formatter = logging.Formatter('%(message)s %(asctime)s.%(msecs)03d %(levelname)s',
datefmt='%H:%M:%S')
Since the calls of a particular function do not last more than a few milliseconds, I would like to get a better precision and have more decimal digits. How can I do this?
I nice solution at: Python logging: use milliseconds in time format