Skip to content

log with logrus with restraints on frequency of logging

Notifications You must be signed in to change notification settings

Mrucznik/logrus-restraints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logrus restraints

Log with logrus with restraints on frequency of logging.

Examples

logrus_restraints.WithTTL(200 * time.Millisecond).
	Infoln("this message will be logged not more often than every 200ms")
logrus_restraints.EveryN(5).Infoln("this message will be logged every 5 calls")

About

log with logrus with restraints on frequency of logging

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages