log

package
v0.9.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Verbose bool

Verbose decides whether the informatc logs should be output.

Functions

func Info

func Info(v ...interface{})

Info .

func Infof

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

Infof .

func SetDefaultLogger

func SetDefaultLogger(l Logger)

SetDefaultLogger sets the default logger.

func Warn

func Warn(v ...interface{})

Warn .

func Warnf

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

Warnf .

Types

type Logger

type Logger struct {
	Println func(w io.Writer, a ...interface{}) (n int, err error)
	Printf  func(w io.Writer, format string, a ...interface{}) (n int, err error)
}

Logger .

Jump to

Keyboard shortcuts

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