https://github.com/rosbit/color-log
output message with color simplely
https://github.com/rosbit/color-log
Last synced: over 1 year ago
JSON representation
output message with color simplely
- Host: GitHub
- URL: https://github.com/rosbit/color-log
- Owner: rosbit
- License: mit
- Created: 2022-09-22T06:44:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-04T03:33:59.000Z (about 3 years ago)
- Last Synced: 2025-01-16T00:24:42.623Z (over 1 year ago)
- Language: Go
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
