Documentation ¶
Index ¶
Constants ¶
View Source
const (
// CallerSkipFrameCount is the number of stack frames to skip to find the caller.
CallerSkipFrameCount = 3
)
Variables ¶
View Source
var LevelToSeverity = func(level zerolog.Level) string { switch level { case zerolog.NoLevel: return "Default" case zerolog.DebugLevel: return "Debug" case zerolog.WarnLevel: return "Warning" case zerolog.ErrorLevel: return "Error" case zerolog.FatalLevel: return "Alert" case zerolog.PanicLevel: return "Emergency" default: return "Info" } }
LevelToSeverity converts a zerolog level to the stackdriver severity Stackdriver has more levels than zerolog so we skip some severities. By default we set info when no level is provided.
Functions ¶
This section is empty.
Types ¶
type StackdriverSeverityHook ¶
type StackdriverSeverityHook struct{}
Click to show internal directories.
Click to hide internal directories.