Make log output parse friendly #16
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To facilitate easier statistics gathering we can parse the logs.
To make this easier we have to think about how we write to the log.
One thing could be to add important information first.
For example now when a user uploads a file for transcription the we log.
"File 'file-name' uploaded and stored by user 'user-name'"
A proposed way by Eric T would be to have
"'user-name', 'file-name', 'action' : 'Read friendly message'"
Then the log would show:
"'user-name', 'file-name', upload : File 'file-name' uploaded and stored by user 'user-name'
In order to guarantee proper filename matching, this format is probably a good approach:
[ filname / user / action ] friendlymessage