summaryrefslogtreecommitdiff
path: root/internal/io/dlog/loggers/logger.go
blob: d4e85de19097bc4b95be023b18a23aee76d3d381 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package loggers

import (
	"context"
	"sync"
	"time"
)

// Logger is there to plug in your own log implementation.
type Logger interface {
	Log(now time.Time, message string)
	LogWithColors(now time.Time, message, messageWithColors string)
	Start(ctx context.Context, wg *sync.WaitGroup)
	Flush()
	Pause()
	Resume()
	Rotate()
	SupportsColors() bool
}