-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Description
The systemd journal supports three standard fields for the code location of a log message:
In a systemd logger we can easily fill CODE_FILE
and CODE_LINE
from record.file()
and record.line()
respectively, but what about CODE_FUNCTION
?
The record API doesn't have a corresponding field, and it looks as if Rust currently doesn't have a way to get the function name 😕
Is there any other means to get hold of the name of the function? It's not that important, but when it comes to logging the more information we have the better, and I think it'd be helpful to find the source of a log message even if you don't have the source code of the exact version at hands (e.g. in case a function got moved to another module).
Metadata
Metadata
Assignees
Labels
No labels