log

package
v1.18.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Access

func Access(process, outbound, network, localAddr, target string)

func Debugf

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

func Errorf

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

func Fatalf

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

func Infof

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

func RegisterLogger

func RegisterLogger(l Logger)

func SetLevel

func SetLevel(level Level)

func Warnf

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

Types

type Level added in v1.18.0

type Level uint8
const (
	DEBUG Level = iota
	INFO
	WARNING
	ERROR
	SILENT
)

type Logger

type Logger interface {
	SetLevel(level Level)
	Debugf(msg string, args ...interface{})
	Infof(msg string, args ...interface{})
	Warnf(msg string, args ...interface{})
	Errorf(msg string, args ...interface{})
	Fatalf(msg string, args ...interface{})
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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