Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 2020 Changes in this version + var LevelDPanic = log2.LevelDPanic + var LevelDebug = log2.LevelDebug + var LevelError = log2.LevelError + var LevelFatal = log2.LevelFatal + var LevelInfo = log2.LevelInfo + var LevelPanic = log2.LevelPanic + var LevelWarn = log2.LevelWarn + func ContextWithLoggable(ctx context.Context, l Loggable) context.Context + func FormatRFC3339(t time.Time) string + func GetSubsystems() []string + func SetAllLoggers(lvl LogLevel) + func SetDebugLogging() + func SetLogLevel(name, level string) error + func SetLogLevelRegex(e, l string) error + func SetupLogging() + type EventInProgress struct + func (eip *EventInProgress) Append(l Loggable) + func (eip *EventInProgress) Close() error + func (eip *EventInProgress) Done() + func (eip *EventInProgress) DoneWithErr(err error) + func (eip *EventInProgress) SetError(err error) + type EventLogger interface + Event func(ctx context.Context, event string, m ...Loggable) + EventBegin func(ctx context.Context, event string, m ...Loggable) *EventInProgress + Finish func(ctx context.Context) + FinishWithErr func(ctx context.Context, err error) + LogKV func(ctx context.Context, alternatingKeyValues ...interface{}) + SerializeContext func(ctx context.Context) ([]byte, error) + SetErr func(ctx context.Context, err error) + SetTag func(ctx context.Context, key string, value interface{}) + SetTags func(ctx context.Context, tags map[string]interface{}) + Start func(ctx context.Context, name string) context.Context + StartFromParentState func(ctx context.Context, name string, parent []byte) (context.Context, error) + type LogLevel = log2.LogLevel + func LevelFromString(level string) (LogLevel, error) + type Loggable interface + Loggable func() map[string]interface{} + func Deferred(key string, f func() string) Loggable + func Pair(key string, l Loggable) Loggable + type LoggableF func() map[string]interface + func (l LoggableF) Loggable() map[string]interface{} + type LoggableMap map[string]interface + func (l LoggableMap) Loggable() map[string]interface{} + type Metadata map[string]interface + func (m Metadata) JsonString() (string, error) + func (m Metadata) Loggable() map[string]interface{} + func DeepMerge(b, a Metadata) Metadata + func MetadataFromContext(ctx context.Context) (Metadata, error) + func Metadatify(i interface{}) (Metadata, error) + type StandardLogger interface + Warning func(args ...interface{}) + Warningf func(format string, args ...interface{}) + type ZapEventLogger struct + func Logger(system string) *ZapEventLogger + func (el *ZapEventLogger) Event(ctx context.Context, event string, metadata ...Loggable) + func (el *ZapEventLogger) EventBegin(ctx context.Context, event string, metadata ...Loggable) *EventInProgress + func (el *ZapEventLogger) Finish(ctx context.Context) + func (el *ZapEventLogger) FinishWithErr(ctx context.Context, err error) + func (el *ZapEventLogger) LogKV(ctx context.Context, alternatingKeyValues ...interface{}) + func (el *ZapEventLogger) SerializeContext(ctx context.Context) ([]byte, error) + func (el *ZapEventLogger) SetErr(ctx context.Context, err error) + func (el *ZapEventLogger) SetTag(ctx context.Context, k string, v interface{}) + func (el *ZapEventLogger) SetTags(ctx context.Context, tags map[string]interface{}) + func (el *ZapEventLogger) Start(ctx context.Context, operationName string) context.Context + func (el *ZapEventLogger) StartFromParentState(ctx context.Context, operationName string, parent []byte) (context.Context, error) + func (el *ZapEventLogger) Warning(args ...interface{}) + func (el *ZapEventLogger) Warningf(format string, args ...interface{})