logging

package
v0.0.0-...-a5c10b0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

logging provides leveled log methods for the default logger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

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

Debugf prints to the default logger

func Errorf

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

Errorf prints to the default logger

func Infof

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

Infof prints to the default logger

func SetLevel

func SetLevel(l Level)

SetLevel sets a min level for the default logger (log.std)

func Warningf

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

Warningf prints to the default logger

Types

type Level

type Level int32 // sync/atomic int32
const (
	TRACE Level = iota * 10
	DEBUG
	INFO
	WARNING
	ERROR
)

Jump to

Keyboard shortcuts

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