Package logger is a package for managing logger drivers and creating logger instances.
go get -u github.com/gopi-frame/logger
import "github.com/gopi-frame/logger"
package main
import (
"github.com/gopi-frame/logger"
_ "github.com/gopi-frame/logger/driver/zap"
)
func main() {
log, err := logger.Open("zap", map[string]any{
"Level": "debug",
})
}
To create a custom driver, just implement the logger.Driver interface and register it using logger.Register