No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-08 19:41:27 +02:00
config.go Direct error logging, removed ..f calls unified in .Info .Debug updated 2026-10-08 19:41:27 +02:00
entry.go Direct error logging, removed ..f calls unified in .Info .Debug updated 2026-10-08 19:41:27 +02:00
formatter.go feat: add concurrency safety, error handling, and tests 2026-10-01 15:48:06 +02:00
formatter_json.go feat: add concurrency safety, error handling, and tests 2026-10-01 15:48:06 +02:00
formatter_text.go feat: add concurrency safety, error handling, and tests 2026-10-01 15:48:06 +02:00
go.mod Initial logging module 2026-10-01 12:46:04 +02:00
logger.go Direct error logging, removed ..f calls unified in .Info .Debug updated 2026-10-08 19:41:27 +02:00
logger_test.go feat: add concurrency safety, error handling, and tests 2026-10-01 15:48:06 +02:00
README.md Direct error logging, removed ..f calls unified in .Info .Debug updated 2026-10-08 19:41:27 +02:00

logging

A small configurable Go logging library with console/file output, text/JSON formatting, levels, caller information, timestamps and colors.

Install

go get forgejo.owo.nexus/Lexx/llog

Usage

config := logging.DefaultConfig()

config.Level = logging.Debug
config.File.Enabled = true
config.File.Path = "./app.log"

logger := logging.New(config)

logger.Info("Application started")
logger.Error(err)
logger.Debug("Payload: %h", hex)