Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Jack-Gledhill/gogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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!

Releases

No releases published

Packages

No packages published

Languages