Discover Packages
github.com/0xdones/helm
log
package
Version:
v1.2.1
Opens a new window with list of versions in this module.
Published: Mar 8, 2016
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package log provides simple convenience wrappers for logging.
Following convention, this provides functions for logging warnings, errors, information
and debugging.
IsDebugging controls debugging output.
If this is true, debugging messages will be printed. Expensive debugging
operations can be wrapped in `if log.IsDebugging {}`.
func Debug(msg string , v ...interface{})
Debug prints an error severity DEBUG to the log.
Debug will only print if IsDebugging is true.
func Err(msg string , v ...interface{})
Err prints an error of severity ERROR to the log.
func Info(msg string , v ...interface{})
Info prints an error of severity INFO to the log.
func Warn(msg string , v ...interface{})
Warn prints an error severity WARN to the log.
type Receiver interface {
Printf(format string , v ...interface{})
}
Receiver can receive log messages from this package.
Logger is the destination for this package.
The logger that this prints to.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.