logz

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Alert

func Alert(v ...any)

func Alertf

func Alertf(format string, v ...any)

func Critical

func Critical(v ...any)

func Criticalf

func Criticalf(format string, v ...any)

func Debug

func Debug(v ...any)

func Debugf

func Debugf(format string, v ...any)

func Emergency

func Emergency(v ...any)

func Emergencyf

func Emergencyf(format string, v ...any)

func Error

func Error(v ...any)

func Errorf

func Errorf(format string, v ...any)

func Info

func Info(v ...any)

func Infof

func Infof(format string, v ...any)

func Notice

func Notice(v ...any)

func Noticef

func Noticef(format string, v ...any)

func Warning

func Warning(v ...any)

func Warningf

func Warningf(format string, v ...any)

Types

type Details

type Details map[string]any

type Logger

type Logger interface {
	Debug(v ...any)
	Debugf(format string, v ...any)
	Info(v ...any)
	Infof(format string, v ...any)
	Notice(v ...any)
	Noticef(format string, v ...any)
	Warning(v ...any)
	Warningf(format string, v ...any)
	Error(v ...any)
	Errorf(format string, v ...any)
	Critical(v ...any)
	Criticalf(format string, v ...any)
	Alert(v ...any)
	Alertf(format string, v ...any)
	Emergency(v ...any)
	Emergencyf(format string, v ...any)
	WithDetail(key string, value any) Logger
	WithDetails(Details) Logger
}

A Logger that outputs structured logs.

func WithDetail

func WithDetail(key string, value any) Logger

func WithDetails

func WithDetails(details Details) Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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