log

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: BSD-3-Clause Imports: 7 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(format string, args ...any)

func Error added in v0.1.0

func Error(format string, args ...any)

func Info

func Info(format string, args ...any)

func SetLevel

func SetLevel(lvl Level)

SetLevel controls the categories of logs written

func Warn added in v0.1.0

func Warn(format string, args ...any)

Types

type Level

type Level int

Level of logging trigger

const (
	DebugLevel Level = iota
	InfoLevel
	WarningLevel
	ErrorLevel
)

Available logging levels

type Logger

type Logger interface {
	Logf(fmt string, values ...interface{})
}

Logger defines the logs levels used by RamSQL engine

Jump to

Keyboard shortcuts

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