Skip to content

Add log sources#1

Merged
RobertWHurst merged 4 commits intomasterfrom
log-sources
Sep 30, 2025
Merged

Add log sources#1
RobertWHurst merged 4 commits intomasterfrom
log-sources

Conversation

@RobertWHurst
Copy link
Owner

This PR adds log source information. This enables users of the library to set the UseSource option to true in the json logger, and the pretty logger. The effect of doing so will be that, in the case of the json logger, a source object will be added to each log object in the output which contains the function path, line number, and file name. The pretty logger will add (<file>:<line> <funcPath>) to the end of each line.

@RobertWHurst RobertWHurst merged commit acdf6b8 into master Sep 30, 2025
1 check failed
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

Successfully merging this pull request may close these issues.

1 participant