Skip to content
Output is an output logger helper library
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
closer.go
logger.go
logger_test.go
output.go
output_test.go
screenshot.png
utils.go
wrapper.go

README.md

Output GoDoc Status

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

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

screenshot

Usage

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

Print

func ExamplePrint() {
	Print("Hello world!")
}

Printf

func ExamplePrintf() {
	Printf("Hello world! My name is %s.", "Loggy")
}

Success

func ExampleSuccess() {
	Success("Hello world! My name is %s.", "Loggy")
}

Warning

func ExampleWarning() {
	Warning("Hello world! My name is %s.", "Loggy")
}

Error

func ExampleError() {
	Error("Hello world! My name is %s.", "Loggy")
}

Debug

func ExampleDebug() {
	Debug("Hello world! My name is %s.", "Loggy")
}
You can’t perform that action at this time.