logging

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package logging is defined below

Index

Constants

This section is empty.

Variables

View Source
var LogLevelNames = []string{
	"CRITICAL",
	"ERROR",
	"WARNING",
	"INFO",
	"DEBUG",
}

LogLevelNames defined

Functions

This section is empty.

Types

type LogLevel

type LogLevel byte

LogLevel type

const (
	// Critical defined
	Critical LogLevel = iota

	// Error defined
	Error LogLevel = iota

	// Warning defined
	Warning LogLevel = iota

	// Info defined
	Info LogLevel = iota

	// Debug defined
	Debug LogLevel = iota
)

type LogLevelLogger

type LogLevelLogger interface {
	SetLevel(logLevel LogLevel)
	GetLevel() LogLevel

	IsCriticalEnabled() bool
	IsErrorEnabled() bool
	IsWarningEnabled() bool
	IsInfoEnabled() bool
	IsDebugEnabled() bool

	Critical(message string)
	Error(message string)
	Warning(message string)
	Info(message string)
	Debug(message string)

	For(item interface{}) LogLevelLogger

	SetFlags(flag int)
	SetOutput(writer io.Writer)
}

LogLevelLogger defined

var Default LogLevelLogger

Default defined

func For

func For(item interface{}) LogLevelLogger

For function

Jump to

Keyboard shortcuts

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