mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-10 15:01:03 +00:00
Unexport StandardLogger
This commit is contained in:
parent
45f3439a7f
commit
5709d329d5
1 changed files with 7 additions and 7 deletions
14
logger.go
14
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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue