route/vendor/github.com/mmatczuk/go-http-tunnel/log/noplogger.go

13 lines
349 B
Go
Raw Normal View History

2017-10-26 15:46:27 +00:00
// Copyright (C) 2017 MichaƂ Matczuk
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package log
type nopLogger struct{}
// NewNopLogger returns a logger that doesn't do anything.
func NewNopLogger() Logger { return nopLogger{} }
func (nopLogger) Log(...interface{}) error { return nil }