Skip to content
This repository was archived by the owner on Dec 2, 2023. It is now read-only.

prabirshrestha/go-log-symbols

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-log-symbols

Colored symbols for various log levels for go. Ported from https://github.com/sindresorhus/log-symbols

Mac/Linux

Windows

Install

$ go get -u github.com/prabirshrestha/go-log-symbols

Usage

package main

import (
	"fmt"
	"github.com/prabirshrestha/go-log-symbols"
)

func main() {
	fmt.Println(logSymbols.Info(), "information")
	fmt.Println(logSymbols.Success(), "success")
	fmt.Println(logSymbols.Warning(), "warning")
	fmt.Println(logSymbols.Error(), "error")
}

Credits

https://github.com/sindresorhus/log-symbols

License

MIT

About

Colored symbols for various log levels

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages