Documentation ¶
Overview ¶
Package log provides a logging abstraction.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Debug = &logger{} Info = &logger{} Stats = &logger{} )
pdfcpu's 3 defined loggers.
Functions ¶
func SetDefaultDebugLogger ¶
func SetDefaultDebugLogger()
SetDefaultDebugLogger sets the default debug logger.
func SetDefaultInfoLogger ¶
func SetDefaultInfoLogger()
SetDefaultInfoLogger sets the default info logger.
func SetDefaultLoggers ¶
func SetDefaultLoggers()
SetDefaultLoggers sets all loggers to their default logger.
func SetDefaultStatsLogger ¶
func SetDefaultStatsLogger()
SetDefaultStatsLogger sets the default stats logger.
Types ¶
type Logger ¶
type Logger interface { // Printf logs a formatted string. Printf(format string, args ...interface{}) // Println logs a line. Println(args ...interface{}) // Fatalf is equivalent to Printf() followed by a program abort. Fatalf(format string, args ...interface{}) // Fatalln is equivalent to Println() followed by a progam abort. Fatalln(args ...interface{}) }
Logger defines an interface for logging messages.
Click to show internal directories.
Click to hide internal directories.