log

package
v0.0.40 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 7 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message string, args ...interface{})

func Error

func Error(message string, args ...interface{})

func Info

func Info(message string, args ...interface{})

func Log

func Log(level protobufs.LogMessage_LogLevelEnum, message string, args ...interface{})

func Panic

func Panic(message string, args ...interface{})

func SetLevel added in v0.0.9

func SetLevel(level Level)

func SetLibLevel added in v0.0.27

func SetLibLevel(level Level)

func Trace

func Trace(message string, args ...interface{})

func Truncate

func Truncate(text string, width int) string

func Warn

func Warn(message string, args ...interface{})

Types

type Level added in v0.0.9

type Level int
const (
	UNSPECIFIED Level = iota
	TRACE
	DEBUG
	INFO
	WARN
	ERROR
	PANIC
)

func GetLevel added in v0.0.9

func GetLevel() Level

func GetLibLevel added in v0.0.27

func GetLibLevel() Level

func (Level) String added in v0.0.9

func (l Level) String() string

Jump to

Keyboard shortcuts

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