Skip to content

xiaoenai/glog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glog

golang log util

Install

go get github.com/xiaoenai/glog

Example

package main

import (
	"time"
    "github.com/xiaoenai/glog"
)

func main(){
	glog.DefaultLogger().Level =glog.NewLevel("TRACE")
	glog.Tracef("TRACE-> %d",time.Now().Unix())
	glog.Debugf("DEBUG")
	glog.Infof("INFO")
	glog.Warnf("WARN")
	glog.Errorf("ERROR")
	glog.Fatalf("FATALF")
}

Releases

No releases published

Packages

No packages published

Languages