Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rosbit/color-log

output message with color simplely
https://github.com/rosbit/color-log

Last synced: about 6 hours ago
JSON representation

output message with color simplely

Awesome Lists containing this project

README

        

# simple color log

### Install

The package is fully go-getable, so, just type

`go get github.com/rosbit/color-log`

to install.

### Usage

```go
package main

import (
"github.com/rosbit/color-log"
)

func main() {
clog.Info("info message")
clog.Infof("%s", "info message")
clog.Warn("warn message")
clog.Warnf("%s", "warn message")
clog.Error("error message")
clog.Errorf("%s", "error message")
}
```

### Test

![test](color.png)