zapdriver

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const SkipUntilTrueCaller = 4

SkipUntilTrueCaller is the skip level which prints out the actual caller instead of slf4go or slf4go-zap wrappers

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(mode, level, filename, sink string) (*zap.Logger, error)

Init set the log options for debugging.

Types

type LogModeEncoder

type LogModeEncoder func() zapcore.Encoder

type ZapDriver

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

func New

func New(config zap.Config, opts []zap.Option) *ZapDriver

New creates the driver using the provided config wrapper

func NewWithLogger

func NewWithLogger(level zapcore.Level, logger *zap.Logger) *ZapDriver

func (*ZapDriver) GetLevel

func (d *ZapDriver) GetLevel(logger string) core.Level

func (*ZapDriver) Name

func (*ZapDriver) Name() string

func (*ZapDriver) Print

func (d *ZapDriver) Print(r *core.Record)

Jump to

Keyboard shortcuts

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