Make log output parse friendly #16

Open
opened 2025-02-07 10:45:42 +01:00 by niat8586 · 1 comment
Owner

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'

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'
Owner

In order to guarantee proper filename matching, this format is probably a good approach:
[ filname / user / action ] friendlymessage

In order to guarantee proper filename matching, this format is probably a good approach: [ filname / user / action ] friendlymessage
niat8586 referenced this issue from a commit 2025-02-07 11:22:03 +01:00
Sign in to join this conversation.
No Label
No Milestone
No project
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DMC/seshat#16
No description provided.