Unexport StandardLogger

This commit is contained in:
Cody Soyland 2018-07-05 21:54:16 -05:00
parent 45f3439a7f
commit 5709d329d5

View file

@ -43,24 +43,24 @@ func (n *nopLogger) Printf(format string, v ...interface{}) {}
// Debugf is a no-op implementation of the Logger Debugf method.
func (n *nopLogger) Debugf(format string, v ...interface{}) {}
// StandardLogger is a basic implementation of pilosa.Logger based on log.Logger.
type StandardLogger struct {
// standardLogger is a basic implementation of pilosa.Logger based on log.Logger.
type standardLogger struct {
logger *log.Logger
}
func NewStandardLogger(w io.Writer) *StandardLogger {
return &StandardLogger{
func NewStandardLogger(w io.Writer) *standardLogger {
return &standardLogger{
logger: log.New(w, "", log.LstdFlags),
}
}
func (s *StandardLogger) Printf(format string, v ...interface{}) {
func (s *standardLogger) Printf(format string, v ...interface{}) {
s.logger.Printf(format, v...)
}
func (s *StandardLogger) Debugf(format string, v ...interface{}) {}
func (s *standardLogger) Debugf(format string, v ...interface{}) {}
func (s *StandardLogger) Logger() *log.Logger {
func (s *standardLogger) Logger() *log.Logger {
return s.logger
}