logging

package
v0.0.0-...-5014a10 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg any)

func Error

func Error(msg any)

func Info

func Info(msg any)

func ReplaceGlobals

func ReplaceGlobals(logger *Logger)

func Warn

func Warn(msg any)

Types

type Logger

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

func New

func New() *Logger

func (*Logger) Debug

func (l *Logger) Debug(msg any, fields ...zap.Field)

func (*Logger) Error

func (l *Logger) Error(msg any, fields ...zap.Field)

func (*Logger) File

func (l *Logger) File(
	Dir string,
	Filename string,
	Level string,
	MaxSize int,
	MaxAge int,
	MaxBackup int,
	Compress bool,
) *Logger

func (*Logger) Info

func (l *Logger) Info(msg any, fields ...zap.Field)

func (*Logger) R

func (l *Logger) R() *Logger

func (*Logger) SetSkip

func (l *Logger) SetSkip(skip int) *Logger

func (*Logger) Warn

func (l *Logger) Warn(msg any, fields ...zap.Field)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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