Skip to content

brimstone/logger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logger

My first attempt at a logger package with the usability I want.

Usage

package main

import (
	"time"

	"github.com/brimstone/logger"
)

func main() {
	log := logger.Method("main")
	defer log.Profile(time.Now())

	log.Debug("A walrus appears",
		log.Field("animal", time.Now()),
	)

	log.Println("lol, so")
	time.Sleep(time.Second)
	log.Info("Just an info message, like, got this far")
}

About

Attempt at a logger pacakge with better usability

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages