Skip to content

feat: display target instead of module_path#82

Merged
tisonkun merged 2 commits intofast:mainfrom
andylokandy:api
Dec 3, 2024
Merged

feat: display target instead of module_path#82
tisonkun merged 2 commits intofast:mainfrom
andylokandy:api

Conversation

@andylokandy
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@tisonkun
Copy link
Copy Markdown
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
Copy Markdown
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