Skip to content

beanbee/log-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

log-go

Encapsulation of log4go.

Usage:

    import log "github.com/beanbee/log-go"

    // Generate two log files in "./log" directory (xx.log, xx.log.wf)
    // Log filter: -> test.log.wf (log.level > warn)
    // Log rotate: support for backup count
    logger ,err := log.NewLogger("test", "./log").Init()
	
    logger.Warn("warn msg")
    logger.Info("info msg")
    logger.Debug("debug msg") // only seen in debugMode which could be set by 'SetDebugMode(true)'

    // it is required, to work around the bug of log4go
    time.Sleep(100 * time.Millisecond)

About

Encapsulation of log4go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages