Documentation ¶
Overview ¶
Package mehlog allows logging of meh.Error to zap.Logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Log ¶
Log the given error using the default level translator that can be set via SetDefaultLevelTranslator.
func LogToLevel ¶
LogToLevel logs the given error to the given zapcore.Level.
func OmitErrorMessageField ¶ added in v1.11.0
func OmitErrorMessageField(omit bool)
OmitErrorMessageField sets whether the error message field with key meh.MapFieldErrorMessage should be omitted in logs and only output as log message in order to improve human readability.
func SetDefaultLevelTranslator ¶
func SetDefaultLevelTranslator(lt LevelTranslator)
SetDefaultLevelTranslator sets the LevelTranslator to be used for regular Log-calls.
Types ¶
Click to show internal directories.
Click to hide internal directories.