summaryrefslogtreecommitdiff
path: root/internal/io/dlog/loggers/none.go
blob: 973ae3c6f8915ca716db79cb1b009e114b080818 (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) Raw(now time.Time, message string)                           {}
func (none) RawWithColors(now time.Time, message, coloredMessage string) {}
func (none) Flush()                                                      {}
func (none) Pause()                                                      {}
func (none) Resume()                                                     {}
func (none) Rotate()                                                     {}
func (none) SupportsColors() bool                                        { return false }