For situations where we don't want any logs produced by the application. * Remove references to Logger from README * Add implementation of DiscardLogger
14 lines
462 B
Go
14 lines
462 B
Go
package connector
|
|
|
|
// Logger sends pipeline info and errors to logging endpoint. The logger could be
|
|
// used to send to STDOUT, Syslog, or any number of distributed log collecting platforms.
|
|
type Logger interface {
|
|
Fatalf(format string, v ...interface{})
|
|
Printf(format string, v ...interface{})
|
|
}
|
|
|
|
// SetLogger adds the ability to change the logger so that external packages
|
|
// can control the logging for this package
|
|
func SetLogger(l Logger) {
|
|
logger = l
|
|
}
|