log

package
v0.0.0-...-fe7b80c Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log          *log.Logger
	TraceLog     bool
	InfoLog      bool
	ErrLog       bool
	Color        bool
	TerminalMode bool
)

Functions

func Info

func Info(i ...interface{})

Info is a function for informing the user what is going on. It will always log to file and optionally with -debug print to stdout and also will have nice coloredoutput as long as -nocolor is not supplied.

func LogError

func LogError(i ...interface{})

LErr is a function for non-fatal errors. It will always log to file and optionally with -debug print to stdout and also will have nice colored output as long as -nocolor is not supplied.

func Trace

func Trace(i ...interface{})

Trace is a function for non-helper functions to call on call. It will always log to file and optionally with -debug print to stdout and also will have nice coloredoutput as long as -nocolor is not supplied. Don't:

Use on primitive, short or otherwise uneeded functions.  An example
of ones would be the logging functions

Do:

Use on complicated functions, an example would be most of the sde.go
file and any method that uses util.TimeFunction on a defer.

func TypeString

func TypeString(i []interface{}) string

TypeString was initially made for our logging functions however it's can be used all over the codebase

Types

This section is empty.

Jump to

Keyboard shortcuts

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