Categorygithub.com/gdbu/scribe
repositorypackage
0.5.3
Repository: https://github.com/gdbu/scribe.git
Documentation: pkg.go.dev

# README

Scribe GoDoc Status

Scribe is an output logger helper library a few simple features:

  • Thread-safe
  • Colored dot prefix for status (success, warning, error, debug)
  • Debug output (with filename and line number)

screenshot

Usage

The primary usage of scribe is utilizing the package-level logger. See below for examples of the available methods:

Success

func ExampleSuccess() {
	s.Success("This is a success message!", nil)
}

Warning

func ExampleWarning() {
	s.Warning("This is a warning message!", nil)
}

Error

func ExampleError() {
	s.Error("This is an error message!", nil)
}

Debug

func ExampleDebug() {
	s.Debug("This is a debug message!", nil)
}