log

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2025 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, keyvals ...interface{})

Debug logs debug messages

func Debugf

func Debugf(format string, a ...interface{})

func EnableDebug

func EnableDebug()

EnableDebug enabled debug logging and caller reporting

func EnableSilence

func EnableSilence()

EnableSilence will silence most logs, except this written with Print

func Error

func Error(msg string, keyvals ...interface{})

Error logs error messages

func Errorf

func Errorf(format string, a ...interface{})

func Fatal

func Fatal(msg string, keyvals ...interface{})

Fatal logs fatal messages and panics

func Fatalf

func Fatalf(format string, a ...interface{})

func Info

func Info(msg string, keyvals ...interface{})

Info logs info messages

func Infof

func Infof(format string, a ...interface{})

func Print

func Print(msg string, keyvals ...interface{})

Print logs messages regardless of level

func Printf

func Printf(format string, a ...interface{})

func Warn

func Warn(msg string, keyvals ...interface{})

Warn logs warning messages

func Warnf

func Warnf(format string, a ...interface{})

Types

type LLogger

type LLogger = log.Logger

LLogger is a charmbracelet logger type redefinition

var Logger *LLogger

Logger is this package level logger

func With

func With(keyvals ...interface{}) *LLogger

With returns a sublogger with a prefix

Jump to

Keyboard shortcuts

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