8000 GitHub - soyking/flog · GitHub
[go: up one dir, main page]

Skip to content
soykingPublic

About

No description, website, or topics provided.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

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

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0