blob: f43c67953fb920c1c3bc24aad852e443b6166d46 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package loggers
import (
"context"
"sync"
"time"
)
// don't log anything
type none struct{}
func (none) Start(ctx context.Context, wg *sync.WaitGroup) { wg.Done() }
func (none) Log(now time.Time, message string) {
// This is empty because the none isn't logging but has to satisfy the interface.
}
func (none) LogWithColors(now time.Time, message, coloredMessage string) {
// This is empty because the none isn't logging but has to satisfy the interface.
}
func (none) Raw(now time.Time, message string) {
// This is empty because the none isn't logging but has to satisfy the interface.
}
func (none) RawWithColors(now time.Time, message, coloredMessage string) {
// This is empty because the none isn't logging but has to satisfy the interface.
}
func (none) Flush() {
// This is empty because the none isn't logging but has to satisfy the interface.
}
func (none) Pause() {
// This is empty because the none isn't logging but has to satisfy the interface.
}
func (none) Resume() {
// This is empty because the none isn't logging but has to satisfy the interface.
}
func (none) Rotate() {
// This is empty because the none isn't logging but has to satisfy the interface.
}
func (none) SupportsColors() bool { return false }
|