slog

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause 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 SetEncoding

func SetEncoding(v string)

func SetLogger

func SetLogger(level Level)

Types

type Level

type Level int

type Logger

type Logger interface {
	Println(...interface{})
	Printf(string, ...interface{})
}

func Debug

func Debug() Logger

Jump to

Keyboard shortcuts

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