liblog

package module
v0.1.2-beta.2 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: ISC Imports: 7 Imported by: 0

README

Lib logging

Simple library for logging in CLIs.

Documentation

Index

Constants

View Source
const (
	LEVEL_ERROR = iota
	LEVEL_DONE
	LEVEL_WARN
	LEVEL_INFO
	LEVEL_CACHE
	LEVEL_DEBUG
)

Variables

View Source
var IsTerminal = true
View Source
var LogLevel = LEVEL_CACHE
View Source
var Output io.Writer = os.Stdout
View Source
var UseColors = true

Functions

func Cached

func Cached(nesting uint, format string, args ...any)

func Debug

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

func Done

func Done(nesting uint, format string, args ...any)

func Error

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

func Info

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

func Warn

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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