Code Monkey home page Code Monkey logo

Comments (4)

eddyp avatar eddyp commented on July 25, 2024

@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.

guillemj avatar guillemj commented on July 25, 2024

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.

eddyp avatar eddyp commented on July 25, 2024

@guillemj: That makes sense.
@srid, what do you think?

from appdirs.

srid avatar srid commented on July 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.