zerolog

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerAdapter

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

LoggerAdapter - comment struct.

func New

func New(opts Options) *LoggerAdapter

New - создаёт объект LoggerAdapter.

func (*LoggerAdapter) Debug

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

Debug - comment method.

func (*LoggerAdapter) Error

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

Error - comment method.

func (*LoggerAdapter) Fatal

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

Fatal - comment method.

func (*LoggerAdapter) Info

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

Info - comment method.

func (*LoggerAdapter) Level

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

Level - comment method.

func (*LoggerAdapter) Panic

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

Panic - comment method.

func (*LoggerAdapter) Printf

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

Printf - comment method.

func (*LoggerAdapter) Trace

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

Trace - comment method.

func (*LoggerAdapter) Warn

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

Warn - comment method.

func (*LoggerAdapter) With

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

With - comment method.

func (*LoggerAdapter) WithContext

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

WithContext - comment method.

type Options

type Options struct {
	Zerolog          zerolog.Logger
	Level            mrlog.Level
	PrepareErrorFunc func(err error) error
}

Options - comment struct.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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