Skip to content

gopi-frame/logger

Repository files navigation

Logger

Go Reference Go codecov Go Report Card License: MIT FOSSA Status

Package logger is a package for managing logger drivers and creating logger instances.

Installation

go get -u github.com/gopi-frame/logger

Import

import "github.com/gopi-frame/logger"

Usage

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",
    })
}

Drivers

How to create a custom driver

To create a custom driver, just implement the logger.Driver interface and register it using logger.Register

License

FOSSA Status

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages