-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
EntryCaller output path is too long or too short #1457
Comments
Does this help IDEA link jump to where the output log is |
Hey @zlx2019, could you clarify what you mean by project root and how it could be calculated by zap? Is the benefit of this suggestion to help with IDE integration? |
Enter the relative path of the log source file to the project, which will help you click the link in GoLand to jump to the output. |
How do we know what the project root is? Is that based on the the IDE? If that's the case, I don't believe it's best to encode IDE specific details into Zap. |
Is it possible to make the EntryCaller output path relative to the project?
Wrong example:
D:/xxx/xxx/app/app.go:46
app/app.go:46
What I want is this:
<project_root>/cmd/app/app.go:46
<project_root>/.../internal/server/server.go:46
The text was updated successfully, but these errors were encountered: