logger

package
v0.0.0-...-7deb90a Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2010 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEBUG   = -1 + iota // start with -1
	DEFAULT             // should be 0
	WARN
	ERROR
)

Variables

This section is empty.

Functions

func Debug

func Debug(format string, v ...interface{})

Prints debug messages. Same syntax as fmt.Printf.

func DebugContinue

func DebugContinue(format string, v ...interface{})

Prints a debug message if enabled but without the "DEBUG: " prefix. Same syntax as fmt.Printf.

func Error

func Error(format string, v ...interface{})

Prints an error message. Same syntax as fmt.Printf.

func ErrorContinue

func ErrorContinue(format string, v ...interface{})

Prints an error message but without the "ERROR: " prefix. Same syntax as fmt.Printf.

func Info

func Info(format string, v ...interface{})

Prints an info message if enabled. This is for general feedback about what gobuild is currently doing. Same syntax as fmt.Printf.

func SetVerbosityLevel

func SetVerbosityLevel(level int)

Sets the verbosity level. Possible values are DEBUG, DEFAULT, WARN and ERROR. DEFAULT is the standard value which will print everything but debug messages.

func Warn

func Warn(format string, v ...interface{})

Prints a warning if warnings are enabled. Same syntax as fmt.Printf.

func WarnContinue

func WarnContinue(format string, v ...interface{})

Prints a warning message if enabled but without the "WARNING: " prefix. Same syntax as fmt.Printf.

Types

This section is empty.

Jump to

Keyboard shortcuts

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