log

package
v0.0.0-...-20522ef Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(c string) error

Build a zap logger from default or custom config

func Debug

func Debug(args ...interface{})

Debug ...

func Debugf

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

Debugf ...

func Error

func Error(args ...interface{})

Error ..

func Errorf

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

Errorf ...

func Fatal

func Fatal(args ...interface{})

Fatal ...

func Fatalf

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

Fatalf ...

func Get

func Get() *zap.SugaredLogger

Get a zap logger

func HTTP

func HTTP(args ...interface{})

HTTP ...

func HTTPf

func HTTPf(format string, args ...interface{})

HTTPf ...

func Info

func Info(args ...interface{})

Info ...

func Infof

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

Infof ...

func Level

func Level() int

Level returns the log level

func LogJSON

func LogJSON() bool

func Output

func Output() io.Writer

Output returns the output writer

func Print

func Print(args ...interface{})

Print ...

func Printf

func Printf(format string, args ...interface{})

Printf ...

func Set

func Set(sl *zap.SugaredLogger)

Set a zap logger

func SetLevel

func SetLevel(level int)

Level is the log level 0: silent - do not log 1: normal - show everything except debug and warn 2: verbose - show everything except debug 3: very verbose - show everything

func SetLogJSON

func SetLogJSON(logJSON bool)

func SetOutput

func SetOutput(w io.Writer)

SetOutput sets the output of the logger

func Warn

func Warn(args ...interface{})

Warn ...

func Warnf

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

Warnf ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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