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
I would like to use filename hook but only for errors, other hooks I use (logrus_sentry, logrus-papertrail-hook) expose a SetLevels method for this like so:
@onrik my use case is wanting to only include the filename for certain levels.
I found a pattern in other hooks that support the SetLevels method so I assumed that was not supported but now that I looked at the code I see that NewHook takes levels as an arg.
Maybe you could add links to godoc to help others as well:
I would like to use filename hook but only for errors, other hooks I use (logrus_sentry, logrus-papertrail-hook) expose a SetLevels method for this like so:
The text was updated successfully, but these errors were encountered: