Skip to content
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

Allow the function name to be included in the log output #84

Open
jfilby opened this issue Jul 18, 2020 · 4 comments
Open

Allow the function name to be included in the log output #84

jfilby opened this issue Jul 18, 2020 · 4 comments

Comments

@jfilby
Copy link

jfilby commented Jul 18, 2020

This would help to understand how the log output relates to the program structure (faster).

@zah
Copy link
Contributor

zah commented Jul 21, 2020

Chronicles already has a somewhat similar mechanism that adds file name and line number information to each logged line. It's enabled by compiling your code with -d:chronicles_line_numbers:on

@jfilby
Copy link
Author

jfilby commented Jul 21, 2020

The filename and line number is not nearly enough, especially for large files. It makes following the flow of logging more time consuming without the function name.

@zah
Copy link
Contributor

zah commented Jul 21, 2020

There are some suggestions for how the name of the function can be obtained in the following discussion:
nim-lang/Nim#8212

The required changes in Chronicles wouldn't be very complicated if one uses chronicles_line_numbers as a model.

@ringabout
Copy link
Contributor

Related:
nim-lang/Nim#17640

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

No branches or pull requests

3 participants