From 5709d329d5373363c8e48e12a109e32d8b8be474 Mon Sep 17 00:00:00 2001 From: Cody Soyland Date: Thu, 5 Jul 2018 21:54:16 -0500 Subject: [PATCH] Unexport StandardLogger --- logger.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/logger.go b/logger.go index 93b12c3f8..6afa24c96 100644 --- a/logger.go +++ b/logger.go @@ -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 }