gologging

package module
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: LGPL-3.0 Imports: 13 Imported by: 12

README

GoLogging

A minimal and colorful CLI Go logging library.

It provides a leveled structured human-readable logger with a small API. Unlike standard log, the gollogging library provides a leveled logger with a structured output.
  • Uses Lip Gloss to style and colorize the output.
  • Colorful, human readable format.
  • Supports structured logging.
  • Supports lambda for caller frame.
  • Supports leveled logging.
  • Android Studio Logcat like output.

Supports Also Lambda Functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(message ...any)

func Error

func Error(message ...any)

func Fatal

func Fatal(message ...any)

func Info

func Info(message ...any)

func SetLevel

func SetLevel(level Level)

func Warn

func Warn(message ...any)

Types

type Level

type Level int32
const (
	// DebugLevel is the debug level.
	DebugLevel Level = -4
	// InfoLevel is the info level.
	InfoLevel Level = 0
	// WarnLevel is the warn level.
	WarnLevel Level = 4
	// ErrorLevel is the error level.
	ErrorLevel Level = 8
	// FatalLevel is the fatal level.
	FatalLevel Level = 12
)

Directories

Path Synopsis
examples
lambda_crash command
simple command

Jump to

Keyboard shortcuts

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