package
0.0.0-20230913075158-2a10a861e348
Repository: https://github.com/lazychanger/go-contrib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

Logger

Install

go get -u github.com/lazychanger/go-contrib/logger

How to use

package main

import (
	log "github.com/lazychanger/go-contrib/logger"
	// zerolog driver
	_ "github.com/lazychanger/go-contrib/logger/zerolog"
)

func main() {
	log.SetLevel(log.InfoLevel)
	// default is json format 
	log.SetFormat(log.Color)

	log.Trace("Hello Trace")
	log.Debug("Hello Debug")
	log.Info("Hello Info")
	log.Warn("Hello Warn")
	log.Error("Hello Error")
	log.Fatal("Hello Fatal")
	log.Panic("Hello Panic")
}

Todo

** More driver **