Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 917 Bytes

README.md

File metadata and controls

47 lines (29 loc) · 917 Bytes

colorgful report

Colorizer extension for lorg.

Basically, turns lorg output into this:

dark

Or this:

light

colorgful comes with two embedded themes: light and dark.

Example

package main

import (
	"github.com/kovetskiy/lorg"
	"github.com/reconquest/colorgful"
)

func main() {
	log := lorg.NewLog()

	log.SetFormat(colorgful.MustApplyDefaultTheme(
		`* ${time} ${level} %s`,
		colorgful.Light,
	))

	log.SetLevel(lorg.LevelTrace)

	log.Trace("tracing dead status")

	log.Debug("debuggin dead status")

	log.Info("soon you will be dead")

	log.Warning("you are not prepared to be dead")

	log.Error("you're dead!")

	log.Fatal("stopping")
}