log

package
v0.0.0-...-af561f6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2019 License: MIT Imports: 6 Imported by: 3

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.

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL