Skip to content

Logging errors not going to file #2589

Answered by aldas
SKFrozenCloud asked this question in Q&A
Discussion options

You must be logged in to vote

This is because c.Logger() and logger middleware are two different things and are not related. If you want c.Logger() to output to file you need to set e.Logger = with proper "file"logging logger instance.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SKFrozenCloud
Comment options

Answer selected by SKFrozenCloud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants