Categorygithub.com/shuvava/go-logging
module
1.0.6
Repository: https://github.com/shuvava/go-logging.git
Documentation: pkg.go.dev

# README

Golang logging package

Go Reference Build Status

This logging package is a wrapper around the standard library's log package, giving you abstractions for logging at different levels.

Installation

  go get github.com/shuvava/[email protected]

Usage

package main

import (
	"github.com/shuvava/go-logging/logger"
	"github.com/sirupsen/logrus"
)

func main() {
	log := logger.NewLogrusLogger(logrus.DebugLevel)
	log.Trace("Something very low level.")
	log.Debug("Useful debugging information.")
	log.Info("Something noteworthy happened!")
	log.Warn("You should probably take a look at this.")
	log.Error("Something failed but I'm not quitting.")
	// Calls os.Exit(1) after logging
	log.Fatal("Bye.")
}

# Packages

No description provided by the author
Package logger is abstraction over logger implementation.