Skip to content

tidwall/redlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redlog

GoDoc

Redlog is a Redis style logger for Go.

Installing

go get -u github.com/tidwall/redlog

Example

log := redlog.New(os.Stderr)
log.Printf("Server started at 10.0.1.5:6379")
log.Debugf("Connected to leader")
log.Warningf("Heartbeat timeout reached, starting election")

Output:

93324:M 29 Aug 09:30:59.943 * Server started at 10.0.1.5:6379
93324:M 29 Aug 09:31:01.892 . Connected to leader
93324:M 29 Aug 09:31:02.331 # Heartbeat timeout reached, starting election 

Contact

Josh Baker @tidwall

License

Redcon source code is available under the MIT License.

About

Redis style logger for Go

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages