blob: 195108bb46713c9fb9a3c7bd604272e99f2e27ae (
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"
)
// 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)
Raw(now time.Time, message string)
RawWithColors(now time.Time, message, messageWithColors string)
Start(ctx context.Context, wg *sync.WaitGroup)
Flush()
Pause()
Resume()
Rotate()
SupportsColors() bool
}
|