Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concards Log File #24

Open
alanxoc3 opened this issue Jul 13, 2020 · 5 comments
Open

Concards Log File #24

alanxoc3 opened this issue Jul 13, 2020 · 5 comments

Comments

@alanxoc3
Copy link
Owner

Design how logging would look like in Concards. And implement it here.

alanxoc3 added a commit that referenced this issue Sep 8, 2020
A bunch of issues that relate to work I've been doing lately on this
branch are linked too.
@alanxoc3
Copy link
Owner Author

Similar to GH-40 for the outcome side. So this doesn't include outcomes.

@alanxoc3
Copy link
Owner Author

The log file should be written either to $XDG_CACHE_HOME/concards/log or ~/.cache/concards/log.

@alanxoc3
Copy link
Owner Author

It might be interesting to store card content into a database file in the cache too. If it's in the cache directory, it's unlikely it would be accidentally version controlled. This is something that could be disabled with a config file.

The database wouldn't need to store any meta information. It would probably just be a checksum to string mapping.

@alanxoc3
Copy link
Owner Author

Should I do logs the way tmux does them? Tmux stores the logs in the current directory, only if you have an option enabled. I think it would be useful to enable logs by default. The logs might show fatal errors and timestamps of when you start or end a session.

@alanxoc3
Copy link
Owner Author

Also, with the database cache idea, there should be a limit to how large a card can be. That way, no entry in the cache would be too massive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant