log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Logger represents a custom logging object.
	// It's exported so it can be used by api.httplogger until it's changed.
	Logger = stdLog.New(&logWriter{out: os.Stdout}, "", stdLog.Lshortfile)
)

Functions

func Debug

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

Debug logs a DEBUG logging line.

func Fatalf

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

Fatalf is equivalent to Printf() followed by a call to os.Exit(1).

func Fatalln

func Fatalln(v ...interface{})

Fatalln is equivalent to Println() followed by a call to os.Exit(1).

func Info

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

Info logs an INFO logging line.

func Print

func Print(v ...interface{})

Print calls logger.Output to print to the logger without any labels. Arguments are handled in the manner of fmt.Print.

func Printf

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

Printf calls logger.Output to print to the logger without any labels. Arguments are handled in the manner of fmt.Printf.

func Println

func Println(v ...interface{})

Println calls logger.Output to print to the logger without any labels. Arguments are handled in the manner of fmt.Println.

func SetLevel

func SetLevel(lvl int)

SetLevel sets the logging level.

func SetOutput

func SetOutput(w io.Writer)

SetOutput sets the output to a new io.Writer object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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