/log

Primary LanguageGoGNU Lesser General Public License v3.0LGPL-3.0

logging

Author

How To Use

Get the go code

go get -u github.com/EdenPP/log

Use the package

import "github.com/EdenPP/log"

func main() {


    filePath := "/var/log/test.log"
	
	// Set log level, suport 
	log.SetLevelByString("INFO")
	
	// set file path
	log.SetOutputByName(filePath)
	
	// rotate by houre
	log.SetRotateByHour()

}