asctime gives None in logging #13719
-
|
Hi There, It results with the following: How could I get the timestamp heading log line ? Thanks and regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
There is a time module in standard-lib and the logging module needs it.
|
Beta Was this translation helpful? Give feedback.
There is a time module in standard-lib and the logging module needs it.
So first importing that module should solve your problem.
I had this problem once too and started to code
time.strftime()only to note later that it was already there.