mrzerolog

package
v0.15.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDateTimeFormat

func SetDateTimeFormat(value string)

SetDateTimeFormat - WARNING: use only when starting the main process

Types

type ContextAdapter

type ContextAdapter struct {
	// contains filtered or unexported fields
}

func (*ContextAdapter) Any

func (c *ContextAdapter) Any(key string, value any) mrlog.LoggerContext

func (*ContextAdapter) Bytes

func (c *ContextAdapter) Bytes(key string, value []byte) mrlog.LoggerContext

func (*ContextAdapter) CallerWithSkipFrame

func (c *ContextAdapter) CallerWithSkipFrame(count int) mrlog.LoggerContext

func (*ContextAdapter) Int

func (c *ContextAdapter) Int(key string, value int) mrlog.LoggerContext

func (*ContextAdapter) Logger

func (c *ContextAdapter) Logger() mrlog.Logger

func (*ContextAdapter) Str

func (c *ContextAdapter) Str(key, value string) mrlog.LoggerContext

type EventAdapter

type EventAdapter struct {
	// contains filtered or unexported fields
}

func (*EventAdapter) Any

func (e *EventAdapter) Any(key string, value any) mrlog.LoggerEvent

func (*EventAdapter) Bytes

func (e *EventAdapter) Bytes(key string, value []byte) mrlog.LoggerEvent

func (*EventAdapter) Caller

func (e *EventAdapter) Caller(skip ...int) mrlog.LoggerEvent

func (*EventAdapter) CallerSkipFrame added in v0.14.0

func (e *EventAdapter) CallerSkipFrame(count int) mrlog.LoggerEvent

func (*EventAdapter) Err

func (e *EventAdapter) Err(err error) mrlog.LoggerEvent

func (*EventAdapter) Int

func (e *EventAdapter) Int(key string, value int) mrlog.LoggerEvent

func (*EventAdapter) Msg

func (e *EventAdapter) Msg(message string)

func (*EventAdapter) MsgFunc

func (e *EventAdapter) MsgFunc(createMsg func() string)

func (*EventAdapter) Msgf

func (e *EventAdapter) Msgf(format string, args ...any)

func (*EventAdapter) Send

func (e *EventAdapter) Send()

func (*EventAdapter) Str

func (e *EventAdapter) Str(key, value string) mrlog.LoggerEvent

type LoggerAdapter

type LoggerAdapter struct {
	// contains filtered or unexported fields
}

func New

func New(opts mrlog.Options) *LoggerAdapter

func (*LoggerAdapter) Debug

func (l *LoggerAdapter) Debug() mrlog.LoggerEvent

func (*LoggerAdapter) Emit

func (l *LoggerAdapter) Emit(ctx context.Context, eventName string, object any)

func (*LoggerAdapter) EmitWithSource

func (l *LoggerAdapter) EmitWithSource(ctx context.Context, eventName, source string, object any)

func (*LoggerAdapter) Error

func (l *LoggerAdapter) Error() mrlog.LoggerEvent

func (*LoggerAdapter) Fatal

func (l *LoggerAdapter) Fatal() mrlog.LoggerEvent

func (*LoggerAdapter) Info

func (l *LoggerAdapter) Info() mrlog.LoggerEvent

func (*LoggerAdapter) Level

func (l *LoggerAdapter) Level() mrlog.Level

func (*LoggerAdapter) Panic

func (l *LoggerAdapter) Panic() mrlog.LoggerEvent

func (*LoggerAdapter) Printf

func (l *LoggerAdapter) Printf(format string, args ...any)

func (*LoggerAdapter) Trace

func (l *LoggerAdapter) Trace() mrlog.LoggerEvent

func (*LoggerAdapter) Warn

func (l *LoggerAdapter) Warn() mrlog.LoggerEvent

func (*LoggerAdapter) With

func (l *LoggerAdapter) With() mrlog.LoggerContext

func (*LoggerAdapter) WithContext

func (l *LoggerAdapter) WithContext(ctx context.Context) context.Context

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL