Content-Length: 295787 | pFad | http://github.com/micropython/micropython/discussions/13719

882 asctime gives None in logging · micropython · Discussion #13719 · GitHub
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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/micropython/micropython/discussions/13719

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy