yuriygr / go-loggy

Humble & Colorful logging library for Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Humble & Colorful logging library for Golang

Go Report Card Build Status

About

Все просто, сторонние решения слишком сложные и тяжелые, а это... ну, мои задачи оно решает.

Install

go get -u github.com/yuriygr/go-loggy

Features

  • Humble
  • Colorful
  • No dependencies

Quick Start

config := loggy.LoggerConfig{
    Writer:     os.Stderr,
    TimeFormat: "2006-01-02 15:04:05",
}
logger := loggy.NewLogger(config)

Examples

logger.Success("Success text")

logger.Info("Info text")

logger.Notice("Notice text")

logger.Warning("Warning text")

logger.Error("Error text")

logger.Debug("Debug text")

About

Humble & Colorful logging library for Golang

License:GNU General Public License v3.0


Languages

Language:Go 100.0%