https://github.com/willbarkoff/verbose
💬 Logs with a little bit of flavor
https://github.com/willbarkoff/verbose
ansi-colors go golang terminal
Last synced: 5 months ago
JSON representation
💬 Logs with a little bit of flavor
- Host: GitHub
- URL: https://github.com/willbarkoff/verbose
- Owner: willbarkoff
- License: mit
- Created: 2020-06-24T17:29:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T00:48:01.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T13:36:26.378Z (almost 2 years ago)
- Topics: ansi-colors, go, golang, terminal
- Language: Go
- Homepage: https://willbarkoff.dev/verbose
- Size: 539 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Verbose
💬 Logs with a little bit of flavor
---
Verbose just prints logs in a _shiny_ way.

By default, Verbose includes 4 styles.
- Success
- Info
- Warning
- Error
Verbose also supports declaring your own style in a simple way:
```go
xmas := verbose.Style{
Foreground: 1,
Background: 2,
Text: "Christmas",
Level: 1,
}
```
To print a message to the log, just call `Println` on a style.
```go
verbose.Success.Println("Yay, you just printed your first messages")
verbose.Error.Println("The world is imploding!")
xmas.Println("Merry Christmas!")
```
## Installation
Verbose is a go module. You can just run go get to install it.
```
$ go get -u github.com/willbarkoff/verbose
```
## Contributing
Contributions are welcome!
## Roadmap
In the future, I want to support more detailed log levels, and include more documentation.