config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableDefaultLogger

func DisableDefaultLogger()

DisableDefaultLogger disables the default logger.

func EnableDefaultLogger

func EnableDefaultLogger()

EnableDefaultLogger enables the default logger.

func Format

func Format(message string, level Level, color bool) string

func SetBuffer

func SetBuffer(message string) ([]byte, error)

Types

type Level

type Level int

Define available levels

const (
	Fatal Level = iota
	Silent
	Error
	Info
	Warning
	Verbose
	Debug
)

Logging levels

func (Level) String

func (l Level) String() string

Returns iota levels as string

Jump to

Keyboard shortcuts

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