summaryrefslogtreecommitdiff
path: root/internal/io/dlog/loggers/none.go
blob: 270027f988834ae0ab7549272e126a9a9648bdcd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)             {}

func (none) LogWithColors(now time.Time, message, coloredMessage string) {}

func (none) Flush()               {}
func (none) Pause()               {}
func (none) Resume()              {}
func (none) Rotate()              {}
func (none) SupportsColors() bool { return false }