Logging #6
Replies: 3 comments
-
There is a module called platformdirs that currently achieves the same result with more control and in a more standard approach i.e. using the XDG environment variables in Unix systems. You should take a look at this, I'm sure it will fit perfectly for the functionality you are trying to implement (cross-platform support is great and I highly defend it) and it will save you valuable time. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the suggestion. When I get to this feature, I will take a closer look into this module. As it currently stands, I only need the location of the local app data path (and its equivalents on MacOS and Linux), which is why I am hesitant to add another library as a dependency, but if I find myself in a position where I need to access more than one folder on different platforms, using |
Beta Was this translation helpful? Give feedback.
-
Closed by #34. Let's just go with the simple function for now, if this becomes problematic switching to |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Preamble
With logging users are able to investigate error messages for long running tasks more easily.
Requirements
Use the built-in
logging
module to implementLogHandler
class and initialize the logger with a default level of50
. If possible, use the builder-pattern to expose log handler (e.g. for seamlessRichHandler
integration). The log file location should be determined by the function below:Remarks
Planning
Scheduled for milestone 1.0.0.
Beta Was this translation helpful? Give feedback.
All reactions