package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jun 10, 2015
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
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.
func Debug(a ...interface{})
Debug prints debug messages only if the debug mode is enabled.
func Fail(a ...interface{})
Fail prints error messages without exiting the program.
func Fatal(a ...interface{})
Fatal prints error messages, then exits the program with status code 1.
func Info(a ...interface{})
Info prints info messages.
func SetDebugMode(val bool)
SetDebugMode allows to enable/disable debug mode.
func Success(a ...interface{})
Success prints success messages.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.