Categorygithub.com/brimstone/logger
modulepackage
0.0.0-20220623184533-a0bc3dcb2ed6
Repository: https://github.com/brimstone/logger.git
Documentation: pkg.go.dev

# README

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")
}

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author