Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 506 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 506 Bytes

Logger

A Simple color logger for Go

Start using it

Download and install it:

$ go get github.com/alissonbrunosa/logger

Import it in your code:

import "github.com/alissonbrunosa/logger"

Usage

package main

import "github.com/alissonbrunosa/logger"

func main() {
	log := logger.Default

	log.Debug("debug")
	log.Info("info")
	log.Warn("warn")
	log.Error("error")
}

Output

Result output