-
Notifications
You must be signed in to change notification settings - Fork 42
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
Integrate logger #6
Comments
What type of logging do you expect here? E.g. to a log file, to a database, to a log "service", some sort of QubeOS log facility? If 0, Python's What sort of logging do you expect? There's "traditional" timestamped lines which look like this:
Alternatively there's structured logging (e.g. a single line per entry, with each entry being some serialised data [usually JSON in my experience] containing data about the log entry). People (sysadmins?) are used to reading the first sort, although the second sort is way more easy for a machine to parse for the purposes of analysis. Thoughts..? |
There isn't yet a Qubes-specific logging solution (though there is some discussion about that over in freedomofpress/securedrop-workstation#19) nor a plan to ingest these logs by e.g. the SecureDrop monitoring server. We'll likely iterate on this after the initial MVP of the client is complete, but for now let's do simple Python For this ticket, I expect we'd just have an info level log event for application start up (in a new file that will eventually become the main file) |
Agreed that |
OK... so, why not just use Python's For instance, on app start there should probably be something that looks like this (copied from Mu):
In each module in the application you'd just need to do this...
That's it! Thoughts? |
yep, just standard logging! Looks great - want to put this in a PR maybe adding the log file setup in a new |
Update readme with metadata format details
we should log any unexpected exceptions (e.g. during the pilot we'll want to request this log for debugging any issues)
Relevant: freedomofpress/securedrop-workstation#19
The text was updated successfully, but these errors were encountered: