A lightweight and thread-safe logger for Go based on log.c. This logger is designed to provide a simple yet powerful logging mechanism for Go applications, supporting multiple log levels and custom callbacks.
go get github.com/ayo-ajayi/logger
Import the package into your code:
import "github.com/ayo-ajayi/logger"
func main(){
log := logger.NewLogger(logger.INFO, false)
world:="world"
log.Info("Hello %s", world)
}
This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.