Skip to content

go-ind/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Logger

Lightweight logging library in Go supporting info, warn, and error levels. Output can be plain text or JSON.

Installation

Add this module to your project or copy logger.go.

Configuration

log := logger.New("info", "json")
  • level: minimum level (info, warn, error).
  • fmtType: output format (text or json).

Example

Run the example:

go run ./example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages