You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What @rsc suggested above is what all our app's are doing for many years. I am wondering if I can somehow accomplish the same behaviour using Slog?
If there is still possibility for a simple string value, I will then get rid of working directory from it (file) and have a final value as shown below.
"source": "/Users/myself/dev/tetris/cmd/api/main.go:15" <--- FROM
"source": "/cmd/api/main.go:15" <--- TO
Note: I am coming from Zerolog and Logrus background and both have this possibility but I am not sure if Slog has it. If id does, I prefer migrating to Slog.
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
Hi,
RE: #59280 (comment)
What @rsc suggested above is what all our app's are doing for many years. I am wondering if I can somehow accomplish the same behaviour using Slog?
If there is still possibility for a simple string value, I will then get rid of working directory from it (
file
) and have a final value as shown below.Note: I am coming from Zerolog and Logrus background and both have this possibility but I am not sure if Slog has it. If id does, I prefer migrating to Slog.
Thank you
CC: @jba
The text was updated successfully, but these errors were encountered: