Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuriygr/go-loggy
Humble & Colorful logging library for Golang
https://github.com/yuriygr/go-loggy
go golang golang-library golang-package logger
Last synced: about 1 month ago
JSON representation
Humble & Colorful logging library for Golang
- Host: GitHub
- URL: https://github.com/yuriygr/go-loggy
- Owner: yuriygr
- License: gpl-3.0
- Created: 2020-12-22T16:11:07.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-05T09:10:16.000Z (almost 4 years ago)
- Last Synced: 2024-09-29T09:25:26.618Z (3 months ago)
- Topics: go, golang, golang-library, golang-package, logger
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Humble & Colorful logging library for Golang
[![Go Report Card](https://goreportcard.com/badge/github.com/yuriygr/go-loggy)](https://goreportcard.com/report/github.com/yuriygr/go-loggy)
[![Build Status](https://travis-ci.org/yuriygr/go-loggy.svg?branch=master)](https://travis-ci.org/yuriygr/go-loggy)
[![](https://godoc.org/github.com/yuriygr/go-loggy?status.svg)](https://pkg.go.dev/github.com/yuriygr/go-loggy?tab=doc)## About
Все просто, сторонние решения слишком сложные и тяжелые, а это... ну, мои задачи оно решает.
## Install
`go get -u github.com/yuriygr/go-loggy`
## Features
* Humble
* Colorful
* No dependencies## Quick Start
```go
config := loggy.LoggerConfig{
Writer: os.Stderr,
TimeFormat: "2006-01-02 15:04:05",
}
logger := loggy.NewLogger(config)
```## Examples
```go
logger.Success("Success text")logger.Info("Info text")
logger.Notice("Notice text")
logger.Warning("Warning text")
logger.Error("Error text")
logger.Debug("Debug text")
```