Skip to content
/ spoor Public

Logger that provides only Info and Debug level logs

License

Notifications You must be signed in to change notification settings

abdulg/spoor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test

Spoor

Spoor is a logging package with support for 2 log levels, Info, and Debug. The package includes a standard logger. It's accessible using spoor.Infof and spoor.Debugf. The arguments to either are the same as for fmt.Printf. The standard logger logs both Info and Debug level logs to stderr using a log.Logger. Remember that log.logger appends a newline if one is not present in the text to be logged. Use spoor.DebugOn() and spoor.DebugOff() to activate and deactivate the debug logger.

Alternatively you can create your own logger using spoor.New(info *log.Logger, debug *log.Logger), where info and debug are the Info and Debug level loggers respectively.

About

Logger that provides only Info and Debug level logs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages