log

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 7 Imported by: 7

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 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 (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