logs

package
v0.0.0-...-d5107d6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log        = logging.MustGetLogger(modulename)
	LogPrinter *logPrinter
)

==============================================================================================================================

LOGS

==============================================================================================================================

Functions

func Init

func Init(debug bool)

Init configures the logging system.

Types

type LogString

type LogString struct {
	// contains filtered or unexported fields
}

LogString is used to "box" object representations.

func (*LogString) AddF

func (l *LogString) AddF(format string, args ...interface{})

AddF adds a formated line of text, like Printf().

func (*LogString) AddS

func (l *LogString) AddS(s string)

AddS adds a single line of text, with no terminating line return.

func (*LogString) AddSR

func (l *LogString) AddSR(s string)

AddSR adds a single line of text (with line return), like Println().

func (*LogString) BCon

func (l *LogString) BCon(w int)

BCon sends a LogString to the log printer queue (see l.Con() and l.run() below).

func (*LogString) Box

func (l *LogString) Box(w int) string

Box draws a box around the LogString with the specified line width, with a leading line return.

func (*LogString) BoxC

func (l *LogString) BoxC(w int) string

BoxC draws a box around the LogString with the specified line width, without a leading line return.

func (*LogString) Raw

func (l *LogString) Raw() string

Raw retrieves the unprocessed LogString. This is all of the strings to be printerd, separated by "\n".

type Password

type Password string

Password is go-logging type for redacting password in logs.

func (Password) Redacted

func (p Password) Redacted() interface{}

Redacted is used to hide sensitive information, such as password.

Jump to

Keyboard shortcuts

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