logger

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: GPL-3.0, GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LspLogFileName = "lsp.log"
	// CLI indicates gauge is used as a CLI.
	CLI channel = iota
	// API indicates gauge is in daemon mode. Used in IDEs.
	API
	// LSP indicates that gauge is acting as an LSP server.
	LSP
)

Variables

View Source
var ActiveLogFile string

Functions

func Debug added in v0.3.0

func Debug(stdout bool, msg string)

Debug logs DEBUG messages. stdout flag indicates if message is to be written to stdout in addition to log.

func Debugf added in v0.9.0

func Debugf(stdout bool, msg string, args ...interface{})

Debugf logs DEBUG messages. stdout flag indicates if message is to be written to stdout in addition to log.

func Error added in v0.3.0

func Error(stdout bool, msg string)

Error logs ERROR messages. stdout flag indicates if message is to be written to stdout in addition to log.

func Errorf added in v0.3.2

func Errorf(stdout bool, msg string, args ...interface{})

Errorf logs ERROR messages. stdout flag indicates if message is to be written to stdout in addition to log.

func Fatal added in v0.3.0

func Fatal(stdout bool, msg string)

Fatal logs CRITICAL messages and exits. stdout flag indicates if message is to be written to stdout in addition to log.

func Fatalf added in v0.3.2

func Fatalf(stdout bool, msg string, args ...interface{})

Fatalf logs CRITICAL messages and exits. stdout flag indicates if message is to be written to stdout in addition to log.

func HandleWarningMessages added in v0.1.7

func HandleWarningMessages(stdout bool, warnings []string)

HandleWarningMessages logs multiple messages in WARNING mode

func Info added in v0.3.0

func Info(stdout bool, msg string)

Info logs INFO messages. stdout flag indicates if message is to be written to stdout in addition to log.

func Infof added in v0.9.0

func Infof(stdout bool, msg string, args ...interface{})

Infof logs INFO messages. stdout flag indicates if message is to be written to stdout in addition to log.

func Initialize

func Initialize(logLevel string, c channel)

Initialize initializes the logger object

func Warning added in v0.3.0

func Warning(stdout bool, msg string)

Warning logs WARNING messages. stdout flag indicates if message is to be written to stdout in addition to log.

func Warningf added in v0.9.0

func Warningf(stdout bool, msg string, args ...interface{})

Warningf logs WARNING messages. stdout flag indicates if message is to be written to stdout in addition to log.

Types

This section is empty.

Jump to

Keyboard shortcuts

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