Help us shape the future of Go! Take the 2026 Go Developer Survey

jklog

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxDebug

func CtxDebug(ctx context.Context, format string, v ...interface{})

func CtxError

func CtxError(ctx context.Context, format string, v ...interface{})

func CtxFatal

func CtxFatal(ctx context.Context, format string, v ...interface{})

func CtxInfo

func CtxInfo(ctx context.Context, format string, v ...interface{})

func CtxNotice

func CtxNotice(ctx context.Context, format string, v ...interface{})

func CtxWarn

func CtxWarn(ctx context.Context, format string, v ...interface{})

func Debug

func Debug(format string, v ...interface{})

func Error

func Error(format string, v ...interface{})

func Fatal

func Fatal(format string, v ...interface{})

func Info

func Info(format string, v ...interface{})

func Notice

func Notice(format string, v ...interface{})

func Trace

func Trace(format string, v ...interface{})

func Warn

func Warn(format string, v ...interface{})

Types

type LogItf

type LogItf interface {
	Fatal(format string, v ...interface{})
	Error(format string, v ...interface{})
	Warn(format string, v ...interface{})
	Notice(format string, v ...interface{})
	Info(format string, v ...interface{})
	Debug(format string, v ...interface{})
	Trace(format string, v ...interface{})

	CtxFatal(ctx context.Context, format string, v ...interface{})
	CtxError(ctx context.Context, format string, v ...interface{})
	CtxWarn(ctx context.Context, format string, v ...interface{})
	CtxNotice(ctx context.Context, format string, v ...interface{})
	CtxInfo(ctx context.Context, format string, v ...interface{})
	CtxDebug(ctx context.Context, format string, v ...interface{})
}

type Logger

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

func SetLogger

func SetLogger(log LogItf) *Logger

Jump to

Keyboard shortcuts

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