-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnop.go
More file actions
18 lines (14 loc) · 773 Bytes
/
nop.go
File metadata and controls
18 lines (14 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2021 Hyperscale. All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.
package logger
var _ Logger = (*Nop)(nil)
type Nop struct{}
func (Nop) Log(level LevelType, message string, options ...Option) {}
func (Nop) Panic(message string, options ...Option) {}
func (Nop) Fatal(message string, options ...Option) {}
func (Nop) Error(message string, options ...Option) {}
func (Nop) Warning(message string, options ...Option) {}
func (Nop) Info(message string, options ...Option) {}
func (Nop) Debug(message string, options ...Option) {}
func (Nop) Trace(message string, options ...Option) {}