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

feat: display target instead of module_path #82

Merged
merged 2 commits into from
Dec 3, 2024
Merged

Conversation

andylokandy
Copy link
Contributor

@andylokandy andylokandy commented Nov 28, 2024

target is usually identical to target, while target can be manually altered like log::debug!(target: "request", "handling request"). And target can be used in envfilter expression like INFO,request=DEBUG.

Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally looks good. May we add some background to this PR about the difference between target and module_path?

Also, this should deserve a changelog entry. You can add a new [Unrelease] section and add a new entry.

Copy link
Contributor

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

rust-lang/log#390 target is a customzable field that is default to module_path.

@tisonkun tisonkun merged commit feed999 into fast:main Dec 3, 2024
9 checks passed
@tisonkun
Copy link
Contributor

tisonkun commented Dec 3, 2024

Shall we release a 0.19.0 for this now? Or I may expect to release it next week for stashing any other patches.

@andylokandy andylokandy deleted the api branch December 3, 2024 11:41
@andylokandy
Copy link
Contributor Author

I'm ok with holding release.

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.

2 participants