log

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimestampFormat = "2006-01-02 15:04:05"

Functions

func Debug added in v0.1.1

func Debug(msg string, fields ...zap.Field)

func Error added in v0.1.1

func Error(msg string, fields ...zap.Field)

func Errors added in v0.1.1

func Errors(msg string, errs ...error)

func Fatal added in v0.1.1

func Fatal(msg string, fields ...zap.Field)

func Info added in v0.1.1

func Info(msg string, fields ...zap.Field)

func InitLogger

func InitLogger(logConfig *Config)

func IsBackgroundMode added in v0.1.1

func IsBackgroundMode() bool

func Panic added in v0.1.1

func Panic(msg string, fields ...zap.Field)

func PanicErrors added in v0.1.1

func PanicErrors(msg string, errs ...error)

func Sync added in v0.1.1

func Sync() error

func Warn added in v0.1.1

func Warn(msg string, fields ...zap.Field)

Types

type Config added in v0.1.1

type Config struct {
	Level string
	Path  string
	Write bool
}

func (*Config) Key added in v0.1.1

func (c *Config) Key() string

Jump to

Keyboard shortcuts

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