logger

package
v0.0.7-4 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DeveloperLevel zapcore.Level = -2

Variables

This section is empty.

Functions

func Debug

func Debug(data ...any)

func Dev

func Dev(data ...any)

func Error

func Error(data ...any)

func Fatal

func Fatal(data ...any)

func Info

func Info(data ...any)

func Init

func Init(level string) error

Initialize logger with level string

func InitWith

func InitWith(level string, options Options) error

Initialize logger with level string and options

func IsDebug

func IsDebug() bool

func IsDev

func IsDev() bool

func IsError

func IsError() bool

func IsFatal

func IsFatal() bool

func IsInfo

func IsInfo() bool

func IsWarn

func IsWarn() bool

func Level

func Level() string

func Sync

func Sync()

func Warn

func Warn(data ...any)

Types

type Options

type Options struct {
	TimeLayout  string
	EncodeLevel zapcore.LevelEncoder
	StackDepth  int
}

Jump to

Keyboard shortcuts

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