zaplog

package
v1.2.25 Latest Latest
Warning

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

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

Documentation

Overview

global config

global func

global var

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

func DPanic(v ...any)

func DPanicF

func DPanicF(format string, v ...any)

func DPanicW

func DPanicW(msg string, kv ...any)

func Debug

func Debug(v ...any)

func DebugF

func DebugF(format string, v ...any)

func DebugW

func DebugW(msg string, kv ...any)

func Error

func Error(v ...any)

func ErrorF

func ErrorF(format string, v ...any)

func ErrorW

func ErrorW(msg string, kv ...any)

func Fatal

func Fatal(v ...any)

func FatalF

func FatalF(format string, v ...any)

func FatalW

func FatalW(msg string, kv ...any)

func Info

func Info(v ...any)

func InfoF

func InfoF(format string, v ...any)

func InfoW

func InfoW(msg string, kv ...any)

func Init

func Init()

func Panic

func Panic(v ...any)

func PanicF

func PanicF(format string, v ...any)

func PanicW

func PanicW(msg string, kv ...any)

func Warn

func Warn(v ...any)

func WarnF

func WarnF(format string, v ...any)

func WarnW

func WarnW(msg string, kv ...any)

Types

type ConfigOption

type ConfigOption struct {
	sync.Once
	// contains filtered or unexported fields
}

func New added in v1.1.5

func New() *ConfigOption

func NewConfig

func NewConfig() *ConfigOption

NewConfig Deprecated, use New instead

func (*ConfigOption) Load

func (o *ConfigOption) Load()

func (*ConfigOption) WithErrorOutputPaths

func (o *ConfigOption) WithErrorOutputPaths(s ...string) *ConfigOption

WithErrorOutputPaths +optional

func (*ConfigOption) WithLogCaller

func (o *ConfigOption) WithLogCaller(ok bool) *ConfigOption

WithLogCaller +optional

func (*ConfigOption) WithLogEngine

func (o *ConfigOption) WithLogEngine(logEngine string) *ConfigOption

func (*ConfigOption) WithLogEngineStd

func (o *ConfigOption) WithLogEngineStd() *ConfigOption

WithLogEngineStd +optional

func (*ConfigOption) WithLogEngineSugar

func (o *ConfigOption) WithLogEngineSugar() *ConfigOption

WithLogEngineSugar +optional

func (*ConfigOption) WithLogEngineZap

func (o *ConfigOption) WithLogEngineZap() *ConfigOption

WithLogEngineZap +optional

func (*ConfigOption) WithLogLevel

func (o *ConfigOption) WithLogLevel(level string) *ConfigOption

WithLogLevel +required

func (*ConfigOption) WithLogStackTrace

func (o *ConfigOption) WithLogStackTrace(ok bool) *ConfigOption

WithLogStackTrace +optional

func (*ConfigOption) WithOutputPaths

func (o *ConfigOption) WithOutputPaths(s ...string) *ConfigOption

WithOutputPaths +required

Jump to

Keyboard shortcuts

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