package
0.0.0-20190806085950-af561f6ff7a1
Repository: https://github.com/kylebanks/go-kit.git
Documentation: pkg.go.dev

# README

log

-- import "github.com/KyleBanks/go-kit/log/"

Package log provides a simple logging service to print to stdout/stderr with timestamp and log source information.

Usage

var (
	// Logger to be passed around as a LogWriter instance.
	Logger logger
)

func Error

func Error(a ...interface{})

Error outputs to stderr.

func Errorf

func Errorf(format string, a ...interface{})

Errorf outputs a formatted error to stderr.

func Info

func Info(a ...interface{})

Info outputs to stdout.

func Infof

func Infof(format string, a ...interface{})

Infof outputs a formatted string to stdout.

func PrintStack

func PrintStack()

PrintStack outputs the current go routine's stack trace.

# Functions

Error outputs to stderr.
Errorf outputs a formatted error to stderr.
Info outputs to stdout.
Infof outputs a formatted string to stdout.
PrintStack outputs the current go routine's stack trace.

# Variables

Logger to be passed around as a LogWriter instance.