Documentation
¶
Overview ¶
Package Logger provides a singleton which allows consistent logging across the application.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableStandardLogs ¶ added in v0.1.18
func DisableStandardLogs()
DisableStandardLogs disables logs created with the standard library global logger
func RedirectStandardLogs ¶ added in v0.1.18
func RedirectStandardLogs()
RedirectStandardLogs redirects logs created with the standard library global logger to the ProxyLogger.
Types ¶
type Options ¶
type Options struct {
// Allows to set the internal Logger. For now, it will be straightforward
// Sypl logger. In the future, could be the `sypl.IBasicPrinter` interface.
Logger *sypl.Sypl `json:"-"`
FileLevel string `validate:"required,gte=3"`
FilePath string `validate:"required"`
Level string `validate:"required,gte=3"`
}
Options for logging .
type ProxyLogger ¶ added in v0.1.9
ProxyLogger exist to satisfy `goproxy` logging interface.
func (*ProxyLogger) Printf ¶ added in v0.1.9
func (pL *ProxyLogger) Printf(format string, v ...interface{})
Printf satisfies `goproxy` logging interface. Default logging level will be `Debug`.
type StandardLogger ¶ added in v0.1.18
Click to show internal directories.
Click to hide internal directories.