0

Python logger shows as below :

consoleformatter = logging.Formatter('%(asctime)s [%(levelname)-8s] %(message)s')

I want to read my log file timestamp to make more sense of it. Cant get a headstart to convert the time, though this is the format it's specified in.

Say for example my log says timestamp : 0063730209 How do I read it in human readable form?

Thanks

user2176576
  • 734
  • 3
  • 14
  • 39
  • Perhaps https://stackoverflow.com/questions/3220284/how-to-customize-the-time-format-for-python-logging – Dan D. Feb 20 '19 at 11:48
  • I already went through the above link, It does not answer my question, As the link provided allows us to customize the format of the date display. My question is rather simple to know how I can convert a timestamp I found in my Log file to a human readable time. EPOCH converter gave me a timestamp of 1972, which is weird, So I need to know the reason for the syntax of the timestamp [%(levelname)-8s] – user2176576 Feb 21 '19 at 09:19

0 Answers0