package
0.0.5
Repository: https://github.com/pengshaw/go-common.git
Documentation: pkg.go.dev

# README

logger

package main

import (
	"github.com/PengShaw/go-common/logger"
)

func main(){
	logger.InitLogger()
	//logger.InitLoggerByOptions(&logger.Options{Filename: "./test.log"})
	//log :=  logger.GetLogger()
	//log :=  logger.GetLoggerByOptions(&logger.Options{Filename: "./test.log"})

	logger.Info("info ok")
	logger.Infof("info $s","ok")
	//log.Info("info ok")
	//log.Infof("info $s","ok")

	l := logger.WithField("keyA", "valueA")
	l.Info("with key value")
}

# Functions

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

# Structs

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