blob: a685862a670f084e4d2e24fe134f63a951fdf02c (
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
|
package loggers
import (
"context"
"sync"
"time"
)
// don't log anything
type none struct{}
func (none) Start(ctx context.Context, wg *sync.WaitGroup) { wg.Done() }
// Log is empty because the none isn't logging but has to statify the interface.
func (none) Log(now time.Time, message string) {}
// LogWithColora is empty because the none isn't logging but has to statify the interface.
func (none) LogWithColors(now time.Time, message, coloredMessage string) {}
// Raw is empty because the none isn't logging but has to statify the interface.
func (none) Raw(now time.Time, message string) {}
// RawWithColors is empty because the none isn't logging but has to statify the interface.
func (none) RawWithColors(now time.Time, message, coloredMessage string) {}
// Flush is empty because the none isn't logging but has to statify the interface.
func (none) Flush() {}
// Pause is empty because the none isn't logging but has to statify the interface.
func (none) Pause() {}
// Resume is empty because the none isn't logging but has to statify the interface.
func (none) Resume() {}
// Rotate is empty because the none isn't logging but has to statify the interface.
func (none) Rotate() {}
func (none) SupportsColors() bool { return false }
|