-
Notifications
You must be signed in to change notification settings - Fork 39
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
Make logger to print stack trace in file #35
Comments
stefansaasen
added a commit
to ohoj-software/httplog
that referenced
this issue
Feb 15, 2024
…are.LogEntry This fixes go-chi#35 as the httplog.Options#JSON now causes the log entry to not be pretty printed to stderr if set to true.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When an error with level panic occurs, it does not print the stack trace. It still appears in the terminal output, but is not written in the file.
In httplog.go file there is this function:
I examined a bit and it seems that the
l.Options
are not the same that we passed tohttplog.NewLogger
function. They come fromRequestLoggerEntry
struct, not fromLogger
struct.Is there a way to enable it that I don't know?
The text was updated successfully, but these errors were encountered: