"Logging" module, write to file

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
newb
Posts: 43
Joined: Wed Jan 10, 2018 8:19 pm
Location: Bulgaria

"Logging" module, write to file

Post by newb » Sat Aug 14, 2021 12:37 pm

Hi,

I've got a Raspberry Pico and I want to log the errors to a file on the flash. I'm looking at the "logging" module, but there is no documentation for it. I listed the methods in it, but I can't find an alternative to the logging.FileHandler, which is in "big" Python logging module.

So how do you log into a file using, logging module? Thanks.

Post Reply