Skip to content

sirkon/message

Repository files navigation

message

Not everyone needs configured logging.

go get github.com/sirkon/message

This library is primarily for command line short lived utilities where the time output is not needed. Only message itself.

What is supported:

  • Leveled output distincted with colors

    level color methods
    critical bold red Critical, Criticalf, Fatal, Fatalf
    error red Error, Errorf
    warning yellow Warning, Warningf
    notice green Notice, Noticef
    info reset Info, Infof
    debug cyan Debug, Debugf
  • Code location output - DEBUG environment variable must be set into not empty value

Usage example

package main

import "github.com/sirkon/message"

func main() {
	message.Notice("Hello world!")
}

About

Not everyone needs heavy logging

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages