innerzap

package
v0.0.0-...-7c02c66 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggerWithOpt

func NewLoggerWithOpt(opts ...logOpt) *loggerOpt

func WithDisableConsole

func WithDisableConsole(disable bool) logOpt

func WithLogLevel

func WithLogLevel(level zapcore.Level) logOpt

func WithLogPath

func WithLogPath(path string) logOpt

func WithServiceName

func WithServiceName(serviceName string) logOpt

Types

type Logger

type Logger = *zap.Logger

type ZapLoggerAdapter

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

func NewZapLoggerAdapter

func NewZapLoggerAdapter(logger *zap.Logger) *ZapLoggerAdapter

func (*ZapLoggerAdapter) Debug

func (z *ZapLoggerAdapter) Debug(msg string, args ...string)

func (*ZapLoggerAdapter) Error

func (z *ZapLoggerAdapter) Error(msg string, args ...string)

func (*ZapLoggerAdapter) Fatal

func (z *ZapLoggerAdapter) Fatal(msg string, args ...string)

func (*ZapLoggerAdapter) Info

func (z *ZapLoggerAdapter) Info(msg string, args ...string)

func (*ZapLoggerAdapter) Panic

func (z *ZapLoggerAdapter) Panic(msg string, args ...string)

func (*ZapLoggerAdapter) Warn

func (z *ZapLoggerAdapter) Warn(msg string, args ...string)

Jump to

Keyboard shortcuts

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