Discover Packages
github.com/urso/go-lumber
log
package
Version:
v0.0.0-...-23fbfb3
Opens a new window with list of versions in this module.
Published: Jun 29, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package log provides logging functionality used in go-lumber.
The log package provides replaceable logging for use from within go-lumber.
Overwrite Logging variable with custom Logging implementation for integrating
go-lumber logging with applications logging strategy.
func Print(args ...interface{})
Print calls Logger.Print to print to the standard logger. Arguments are
handled in the manner of fmt.Print.
func Printf(format string , args ...interface{})
Printf calls Logger.Printf to print to the standard logger. Arguments are
handled in the manner of fmt.Printf.
func Println(args ...interface{})
Println calls Logger.Println to print to the standard logger. Arguments are
handled in the manner of fmt.Println.
type Logging interface {
Printf(string , ...interface{})
Println(...interface{})
Print(...interface{})
}
Logging interface custom loggers must implement.
var Logger Logging = defaultLogger{}
Logger provides the global logger used by go-lumber.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.