Skip to content

steffakasid/eslog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Test CodeQL Apache-2.0

eslog

Lightweight, structured logger for Go projects. It basically adds some functions to slog which I found missing (e.g. log*f functions and a logFatal function known from standard log package.). Slog is wrapped inside eslog so you can do everything which is possible with slog.

Note
This project is intended to not have any dependencies.

Install

go get github.com/steffakasid/eslog@latest

Quick start

link:./examples/main.go[role=include]

Configuration

  • log.level: debug|info|warn|error

  • log.format: json|text

  • output (optional): file path or stdout/stderr

Contributing

PRs welcome. Please follow gofmt and golangci-lint rules.

License

Apache v2

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages