Skip to content

comail/wincolog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Windows color support for CoLog

Uses go-colorable to display unix terminal colors on Windows. Behaviour for other systems is not altered.

wincolog demo

package main

import (
	"log"

	"comail.io/go/colog"
	"comail.io/go/wincolog"
)

func main() {
	colog.Register()
	colog.SetOutput(wincolog.Stdout())
	log.Println("trace: Trace should be plain")
	log.Println("debug: Debug should be blue")
	log.Println("info: Info should be green")
	log.Println("warn: Warning should be yellow")
	log.Println("error: Error should be red")
	log.Println("alert: Alert should be white on re")
}

About

Windows color support for CoLog

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages