Skip to content

GlenDC/go-mini-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

go-mini-log

This package is a modified version of the standard pkg/log code. The goal of this package is to provide a minimalistic package, which allows for the seperation of debug and info statements. Debug statements which are meant for the developer only, while info statements remain in production and thus can be seen by the user.

The standard logging package is works as it is, except for 2 points:

  • It does not provide the option to have verbose logging for debugging purposes only;
  • It has way to many logging levels, which are really not needed;

This package aims to resolve these issues by using what seems to work well, adding to it what was missing, and removing what wasn't needed.

Warnings are either info or error, so logging them as a seperate level doesn't make sense.

Errors should be either handled or they are fatal. If they are handled, it doesn't make sense to log them as errors any longer, and should be logged as info instead.

This package is not fancy, and should be seen as a practical version of pkg/log.

About

a minimalistic logger for golang applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages