logging

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(c context.Context, v ...interface{})

Log shells out to log.Print if Silent is not set.

func Logf

func Logf(c context.Context, format string, v ...interface{})

Logf shells out to log.Printf if Silent is not set.

func PadRight

func PadRight(
	str string,
	pad string,
	lenght int,
) string

PadRight right-pads a string.

func SetSilent

func SetSilent(ctx context.Context, val bool) context.Context

SetSilent indicates that logs should not actually be omitted for this ctx

func Silent

func Silent(ctx context.Context) bool

Silent indicates whether this context has been marked as silent (so we shouldn't chunder logs)

Types

This section is empty.

Jump to

Keyboard shortcuts

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