logger

package
v4.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log interface {
	// Debug logs a message with debug level
	Debug(msg string, fields ...zap.Field)
	// Warn logs a message with warning level
	Warn(msg string, fields ...zap.Field)
	// Error logs a message with error level
	Error(msg string, fields ...zap.Field)
	// Info logs a message with info level
	Info(msg string, fields ...zap.Field)
	// DPanic logs a message with panic level and calls panic()
	DPanic(msg string, fields ...zap.Field)
	// Panic logs a message with panic level
	Panic(msg string, fields ...zap.Field)
	// Fatal logs a message with fatal level and calls os.Exit(1)
	Fatal(msg string, fields ...zap.Field)
}

Log interface provides methods for logging

type Named

type Named interface {
	// NamedLogger returns a named logger with the specified name
	NamedLogger(name string) *zap.Logger
}

Named interface provides methods for named logger

Jump to

Keyboard shortcuts

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