diff options
| author | Paul Buetow <paul@buetow.org> | 2021-11-02 08:11:40 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-11-02 08:11:40 +0200 |
| commit | 1ec88deea93047a9d1a366e032b2a54aa3cd362b (patch) | |
| tree | 465f30673aa097a2b369e7c3d2032b041ff4f8e6 /internal/io/dlog/loggers/fout.go | |
| parent | 2e9ce81c47d45dd1f2c607df6e19bdfdc3bb3cc8 (diff) | |
Bugfix: Dealing correctly with files without newline characters, also add more tests
Diffstat (limited to 'internal/io/dlog/loggers/fout.go')
| -rw-r--r-- | internal/io/dlog/loggers/fout.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/io/dlog/loggers/fout.go b/internal/io/dlog/loggers/fout.go index 60c318d..6888d40 100644 --- a/internal/io/dlog/loggers/fout.go +++ b/internal/io/dlog/loggers/fout.go @@ -38,6 +38,16 @@ func (f *fout) LogWithColors(now time.Time, message, coloredMessage string) { f.file.Log(now, message) } +func (f *fout) Raw(now time.Time, message string) { + f.stdout.Raw(now, message) + f.file.Raw(now, message) +} + +func (f *fout) RawWithColors(now time.Time, message, coloredMessage string) { + f.stdout.RawWithColors(now, "", coloredMessage) + f.file.Raw(now, message) +} + func (f *fout) Flush() { f.stdout.Flush(); f.file.Flush() } func (f *fout) Pause() { f.stdout.Pause(); f.file.Pause() } func (f *fout) Resume() { f.stdout.Resume(); f.file.Resume() } |
