log

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 10 Imported by: 7 modules, 8 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(a ...interface{})

Debug logs a message at debug level.

func Debugf

func Debugf(format string, a ...interface{})

Debugf logs a message at debug level.

func Debugw

func Debugw(msg string, keyvals ...interface{})

Debugw logs a message at debug level.

func DebugwCtx added in v0.1.1

func DebugwCtx(ctx context.Context, msg string, keyvals ...interface{})

DebugwCtx logs a message at debug level.

func Error

func Error(a ...interface{})

Error logs a message at error level.

func ErrorPanic

func ErrorPanic(err interface{})

ErrorPanic logs a message at error level.

func ErrorStack

func ErrorStack(err error)

ErrorStack logs a message at error level.

func Errorf

func Errorf(format string, a ...interface{})

Errorf logs a message at error level.

func Errorw

func Errorw(msg string, keyvals ...interface{})

Errorw logs a message at error level.

func ErrorwCtx added in v0.1.1

func ErrorwCtx(ctx context.Context, msg string, keyvals ...interface{})

ErrorwCtx logs a message at error level.

func Fatal

func Fatal(a ...interface{})

Fatal logs a message at fatal level.

func Fatalf

func Fatalf(format string, a ...interface{})

Fatalf logs a message at fatal level.

func Fatalw

func Fatalw(msg string, keyvals ...interface{})

Fatalw logs a message at fatal level.

func GetLogger

func GetLogger() *sugar.ZapLogger

GetLogger returns global logger appliance as logger in current process.

func Info

func Info(a ...interface{})

Info logs a message at info level.

func Infof

func Infof(format string, a ...interface{})

Infof logs a message at info level.

func Infow

func Infow(msg string, keyvals ...interface{})

Infow logs a message at info level.

func InfowCtx added in v0.1.1

func InfowCtx(ctx context.Context, msg string, keyvals ...interface{})

InfowCtx logs a message at info level.

func Init

func Init(c []*core.Conf, opts ...sugar.Option) core.Logger

func SetLogger

func SetLogger(logger *sugar.ZapLogger)

SetLogger should be called before any other log call. And it is NOT THREAD SAFE.

func Warn

func Warn(a ...interface{})

Warn logs a message at warn level.

func Warnf

func Warnf(format string, a ...interface{})

Warnf logs a message at warnf level.

func Warnw

func Warnw(msg string, keyvals ...interface{})

Warnw logs a message at warnf level.

func WarnwCtx added in v0.1.1

func WarnwCtx(ctx context.Context, msg string, keyvals ...interface{})

WarnwCtx logs a message at warnf level.

func With

func With(kv ...interface{}) *sugar.ZapLogger

func WithOpts added in v0.1.1

func WithOpts(opts ...sugar.Option) *sugar.ZapLogger

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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