Discover Packages
github.com/iPaladinLLC/pdfcpu
log
package
Version:
v0.1.8
Opens a new window with list of versions in this module.
Published: Mar 26, 2018
License: MIT
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 a logging abstraction.
View Source
var (
Debug = &logger{}
Info = &logger{}
Stats = &logger{}
)
pdfcpu's 3 defined loggers.
DisableLoggers turns off all logging.
func SetDebugLogger(log Logger )
SetDebugLogger sets the debug logger.
func SetDefaultDebugLogger()
SetDefaultDebugLogger sets the default debug logger.
func SetDefaultInfoLogger()
SetDefaultInfoLogger sets the default info logger.
SetDefaultLoggers sets all loggers to their default logger.
func SetDefaultStatsLogger()
SetDefaultStatsLogger sets the default stats logger.
func SetInfoLogger(log Logger )
SetInfoLogger sets the info logger.
func SetStatsLogger(log Logger )
SetStatsLogger sets the stats logger.
type Logger interface {
Printf(format string , v ...interface{})
Println(v ...interface{})
}
Logger defines an interface for logging messages.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.