Skip to content

soyking/flog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flog

Golang logger:

Case 1: using different level logger in different package/struct/instance, which is convenient to debug

Case 2: update logger's level dynamically, which is useful for debugging online service. For example:

http.HandleFunc("/debug/log/level", func(rw http.ResponseWriter, r *http.Request) {
    loggerNames, level := parseLogLevel(r)
    Setup(func(l *Logger) {
        l.SetLevel(level)
    }, loggerNames)
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages