Skip to content

remeh/logr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logr

logr is a simplistic type which implements log rotating, suitable for use with Go's log package.

Build Status GoDoc

Usage

Use it like this.

w := logr.NewWriter("/var/log/mylog.log")
log.SetOutput(w)

log.Println("foobar")

Future works

  • Custom time suffix formats

About

logr is a small log rotating struct compatible with io.Writer, suitable for the default log package

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages