Skip to content
/ Log Public

FetchWeb Log is a simple logging package written in Go with no dependencies outside of the Go standard library.

License

Notifications You must be signed in to change notification settings

FetchWeb/Log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FetchWeb Log

License: MIT Go Report Card Go Doc GitHub release

Introduction

FetchWeb Log is a simple logging package written in Go with no dependencies outside of the Go standard library.

Setup Example

package main

import (
	"errors"
	"os"

	log "github.com/FetchWeb/Log"
)

// TestLog writes test logs to Stdout.
func main() {
	if err := log.Startup(true, os.Stdout); err != nil {
		panic(err)
	}

	log.Info("Test Info message")
	log.Infof("Test Infof %v", errors.New("message"))

	log.Error("Test Error message")
	log.Errorf("Test Errorf %v", errors.New("message"))

	log.Debug("Test Debug message")
	log.Debugf("Test Debugf %v", errors.New("message"))
}

About

FetchWeb Log is a simple logging package written in Go with no dependencies outside of the Go standard library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages