log

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

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

func Error

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

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