Documentation ¶
Index ¶
- func SetDateTimeFormat(value string)
- type ContextAdapter
- func (c *ContextAdapter) Any(key string, value any) mrlog.LoggerContext
- func (c *ContextAdapter) Bytes(key string, value []byte) mrlog.LoggerContext
- func (c *ContextAdapter) CallerWithSkipFrame(count int) mrlog.LoggerContext
- func (c *ContextAdapter) Int(key string, value int) mrlog.LoggerContext
- func (c *ContextAdapter) Logger() mrlog.Logger
- func (c *ContextAdapter) Str(key, value string) mrlog.LoggerContext
- type EventAdapter
- func (e *EventAdapter) Any(key string, value any) mrlog.LoggerEvent
- func (e *EventAdapter) Bytes(key string, value []byte) mrlog.LoggerEvent
- func (e *EventAdapter) Caller(skip ...int) mrlog.LoggerEvent
- func (e *EventAdapter) CallerSkipFrame(count int) mrlog.LoggerEvent
- func (e *EventAdapter) Err(err error) mrlog.LoggerEvent
- func (e *EventAdapter) Int(key string, value int) mrlog.LoggerEvent
- func (e *EventAdapter) Msg(message string)
- func (e *EventAdapter) MsgFunc(createMsg func() string)
- func (e *EventAdapter) Msgf(format string, args ...any)
- func (e *EventAdapter) Send()
- func (e *EventAdapter) Str(key, value string) mrlog.LoggerEvent
- type LoggerAdapter
- func (l *LoggerAdapter) Debug() mrlog.LoggerEvent
- func (l *LoggerAdapter) Emit(ctx context.Context, eventName string, object any)
- func (l *LoggerAdapter) EmitWithSource(ctx context.Context, eventName, source string, object any)
- func (l *LoggerAdapter) Error() mrlog.LoggerEvent
- func (l *LoggerAdapter) Fatal() mrlog.LoggerEvent
- func (l *LoggerAdapter) Info() mrlog.LoggerEvent
- func (l *LoggerAdapter) Level() mrlog.Level
- func (l *LoggerAdapter) Panic() mrlog.LoggerEvent
- func (l *LoggerAdapter) Printf(format string, args ...any)
- func (l *LoggerAdapter) Trace() mrlog.LoggerEvent
- func (l *LoggerAdapter) Warn() mrlog.LoggerEvent
- func (l *LoggerAdapter) With() mrlog.LoggerContext
- func (l *LoggerAdapter) WithContext(ctx context.Context) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDateTimeFormat ¶
func SetDateTimeFormat(value string)
SetDateTimeFormat - WARNING: use only by the main process when it is starting
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
Click to show internal directories.
Click to hide internal directories.