Skip to content

asctime gives None in logging #13719

Feb 21, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

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.

time
This library extends the built-in MicroPython time module to include time.strftime().

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Tico06
Comment options

@rkompass
Comment options

@cahudson
Comment options

Answer selected by Tico06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants