You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
When passing in a log path, that doesn't exist, logzero will fail with a FileNotFoundError.
Instead, logzero should attempt to create the parent directories.
What I Did
tried to pass a relative path logs/clix.log to the logzero.logfile method. since logs didn't yet exist, the method failed with:
Add two lines to whatever file you use to init logzero. I believe this requires python 3.5+. You can always use os to do the same thing on older versions of python.
Description
When passing in a log path, that doesn't exist, logzero will fail with a
FileNotFoundError
.Instead, logzero should attempt to create the parent directories.
What I Did
tried to pass a relative path
logs/clix.log
to thelogzero.logfile
method. sincelogs
didn't yet exist, the method failed with:Workaround
Add two lines to whatever file you use to init logzero. I believe this requires python 3.5+. You can always use os to do the same thing on older versions of python.
The text was updated successfully, but these errors were encountered: