Comments (4)
@guillemj: Just to clarify, which data dir would you expect logs to be in? The one specified by XDG_DATA_HOME?
The XDG standard says about XDG_CACHE_HOME it contains nonessential data, criterion to which logs conform to nicely.
Logs are not easy to regenerate, but I am not convinced they qualify for a better fit in the XDG_DATA_HOME directory than in cache.
from appdirs.
Well there's lots of types of logs, some originate from actions initiated by other programs (which might have less value for the user), but others are due to direct actions by users, for example during an IM conversation (which might be pretty important to keep), so because the worthiness of logs is unknown they should by default be treated as non-discardable important data. Logs, like history in general can be considered a form of state, and I've argued before that they'd deserve their own directory http://lists.freedesktop.org/archives/xdg/2009-February/010191.html, because they are not exactly config, but neither cache. Lacking a dedicated directory of their own, yes I think XDG_DATA_HOME is the best current option.
from appdirs.
@guillemj: That makes sense.
@srid, what do you think?
from appdirs.
@guillemj - user_log_dir
would address the former case (4b95f2f), where logs have less value for the user. for the later case, with such special log files as IM logs, it would be more appropriate to construct your own app dir using user_data_dir
.
from appdirs.
Related Issues (20)
- Linux: Logs directory may be more appropriate under XDG_CONFIG_HOME
- Documentation examples for `user_config_dir` HOT 3
- Calls to appdirs functions fail on Jython in Windows if Java doesn't have JNA
- user_runtime_dir HOT 1
- user_config_dir vs Python from MS Store? HOT 1
- Getting write permission to site directories? HOT 4
- Breaking (and breaking pip) in MinGW Python running on Windows Server 2008 HOT 2
- Provide provide possibility to overwrite "user cache" location with env variable on linux HOT 3
- Startup path is not there
- App name is duplicated on Windows if author name is missing or None HOT 6
- pywintypes.com_error: "Can't find the specified path" on Windows
- Behavior inside a Flatpak sandbox?
- Add a note directing users to platformdirs HOT 3
- Does it support Android? HOT 1
- fix one-sentence summary in docstring for `site_config_dir`
- License parsing HOT 1
- feature: Support "well known" user directories HOT 1
- Branch names release vs. master
- macOS `user_config_dir` goes against OS guidelines
- Deprecate notice
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appdirs.