Jack-Gledhill / gogger

Go console logging with some colors.

Home Page:https://godoc.org/github.com/Jack-Gledhill/gogger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gogger - The Go Logger

Gogger is a console logger designed for simplicity and great features at the same time! It has configurable color options for a (configurable) project name and the levels. The level options are Verbose (AKA Debug), Info, Warn, Error and Fatal!

Installation

Installation is simple, just use go get like any other package.

go get github.com/Jack-Gledhill/gogger

Example

Below is an example of how you'd use Gogger in most use-cases.

package main

import "github.com/Jack-Gledhill/gogger"

func main() {
    log := gogger.New("MyProject", gogger.USDateTimeFormat, true) // project name, datetime format, use colors?

    // Do something here...

    log.Verbose("Hey this is a verbose message, who'da thought?")
}

Documentation

See https://godoc.org/github.com/Jack-Gledhill/gogger for full documentation!

About

Go console logging with some colors.

https://godoc.org/github.com/Jack-Gledhill/gogger

License:MIT License


Languages

Language:Go 100.0%