slog

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG Level = 0x0000a1
	INFO        = 0x0000b2
	WARN        = 0x0000c3
	ERROR       = 0x0000d4
	DATA        = 0x0000f5
	NONE        = 0x0000e6
)

Variables

This section is empty.

Functions

func Printf

func Printf(level Level, format string, s ...interface{})

func Println

func Println(level Level, s ...interface{})

func SetLevel

func SetLevel(level Level)

func SetOutput

func SetOutput(writer io.Writer)

Types

type Level

type Level int

type Logger

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

func Debug

func Debug() *Logger

func (*Logger) Printf

func (l *Logger) Printf(format string, s ...interface{})

func (*Logger) Println

func (l *Logger) Println(s ...interface{})

Jump to

Keyboard shortcuts

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