log

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: Unlicense Imports: 8 Imported by: 0

Documentation

Overview

Package log is a simple logger which prints to stderr, and will later integrate with the spore IPC. This library is intended to be dot-imported and names are meant to not clash with local namespace

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Caller

func Caller(comment string, skip int) string

func Check

func Check(err error) bool

func Debug

func Debug(a ...interface{})

func Debugc

func Debugc(printer func() string)

func Debugf

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

func DisableTTYLogging

func DisableTTYLogging()

DisableTTYLogging disables logging to tty

func EnableTTYLogging

func EnableTTYLogging()

EnableTTYLogging sets the tty logging to go to stderr

func Error

func Error(a ...interface{})

func Errorc

func Errorc(printer func() string)

func Errorf

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

func Fatal

func Fatal(a ...interface{})

func Fatalc

func Fatalc(printer func() string)

func Fatalf

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

func Info

func Info(a ...interface{})

func Infoc

func Infoc(printer func() string)

func Infof

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

func SetLogLevel

func SetLogLevel(level string)

SetLogLevel sets the logging level of the logger

func SetPipeWriter

func SetPipeWriter(p io.WriteCloser)

func Trace

func Trace(a ...interface{})

func Tracec

func Tracec(printer func() string)

func Tracef

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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