log

package
Version: v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2015 License: BSD-3-Clause Imports: 5 Imported by: 3

Documentation

Overview

Package log provides simple logging routines.

Everything is logged into stderr in order to keep stdout empty. This is required because the final JSON must be output into stdout by default.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(a ...interface{})

Debug prints debug messages only if the debug mode is enabled.

func Fail

func Fail(a ...interface{})

Fail prints error messages without exiting the program.

func Fatal

func Fatal(a ...interface{})

Fatal prints error messages, then exits the program with status code 1.

func Info

func Info(a ...interface{})

Info prints info messages.

func SetDebugMode

func SetDebugMode(val bool)

SetDebugMode allows to enable/disable debug mode.

func Success

func Success(a ...interface{})

Success prints success messages.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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