logger

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel int

LogLevel is the type of all log levels

const (
	DEBUG LogLevel = iota
	INFO
	WARNING
	ERROR
)

Debug levels

func Level

func Level() LogLevel

Level gets the current log level

type LogWriter

type LogWriter interface {
	Printf(string, ...interface{})
}

LogWriter is the main logging interface

var Debug LogWriter = null{}

Debug level log writer

var Error LogWriter = null{}

Error level log writer

var Info LogWriter = null{}

Info level log writer

var Warning LogWriter = null{}

Warning level log writer

Jump to

Keyboard shortcuts

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