mirror of
https://github.com/mmatczuk/go-http-tunnel.git
synced 2026-05-15 06:06:03 -06:00
12 lines
351 B
Go
12 lines
351 B
Go
// Copyright (C) 2017 Michał Matczuk
|
|
// Use of this source code is governed by an AGPL-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 }
|