log

package
v0.0.0-...-d9db74c Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultScopeName = "default"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Level

type Level int
const (
	// NoneLevel disables logging
	NoneLevel Level = iota
	FatalLevel
	ErrorLevel
	WarnLevel
	InfoLevel
	DebugLevel
)

type Scope

type Scope struct {
	// contains filtered or unexported fields
}

func RegisterScope

func RegisterScope(name string, desc string) *Scope

func (*Scope) GetLogCallers

func (s *Scope) GetLogCallers() bool

func (*Scope) GetOutputLevel

func (s *Scope) GetOutputLevel() Level

func (*Scope) GetStackTraceLevel

func (s *Scope) GetStackTraceLevel() Level

func (*Scope) Infof

func (s *Scope) Infof(format string, args ...any)

func (*Scope) SetLogCallers

func (s *Scope) SetLogCallers(logCallers bool)

func (*Scope) SetOutputLevel

func (s *Scope) SetOutputLevel(l Level)

func (*Scope) SetStackTraceLevel

func (s *Scope) SetStackTraceLevel(l Level)

Jump to

Keyboard shortcuts

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