Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephnr/log-symbols
Colored symbols for various log levels
https://github.com/stephnr/log-symbols
Last synced: 28 days ago
JSON representation
Colored symbols for various log levels
- Host: GitHub
- URL: https://github.com/stephnr/log-symbols
- Owner: stephnr
- License: mit
- Created: 2018-09-04T21:29:22.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-04T22:59:09.000Z (over 6 years ago)
- Last Synced: 2024-10-25T08:35:28.831Z (3 months ago)
- Language: Go
- Size: 356 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# log-symbols
[![GoDoc](https://godoc.org/github.com/defaltd/log-symbols?status.svg)](https://godoc.org/github.com/defaltd/log-symbols) [![Build Status](https://travis-ci.org/defaltd/log-symbols.svg?branch=master)](https://travis-ci.org/defaltd/log-symbols)
*A port of the NPM package by [Sindresorhus](https://github.com/sindresorhus) for Golang*
> Colored symbols for various log levels
Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437).
## Install
```bash
go get "github.com/defaltd/log-symbols"
```## Examples
```go
package mainimport (
logSymbols "github.com/defaltd/log-symbols"
)func main() {
fmt.Println(logSymbols.SUCCESS, "Finished successfully!")
// On good OSes: ✔ Finished successfully!
// On Windows: √ Finished successfully!
}
```## License
MIT © [Stephen Rodriguez](https://github.com/defaltd)