diff options
| author | Paul Buetow <paul@buetow.org> | 2021-09-28 21:11:50 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2021-10-02 12:26:36 +0300 |
| commit | 609921f9c783941eaa9019a92b78ec45b49d681c (patch) | |
| tree | c4fc6b20404d0f922dc2825e4624be8c04479cbf /internal/io/dlog/loggers/fout.go | |
| parent | fcaa94c7453efa0d74e330128c0f5c2cde8f11b3 (diff) | |
can have daily and normal file log rotation
Diffstat (limited to 'internal/io/dlog/loggers/fout.go')
| -rw-r--r-- | internal/io/dlog/loggers/fout.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/io/dlog/loggers/fout.go b/internal/io/dlog/loggers/fout.go index 603dbe9..60c318d 100644 --- a/internal/io/dlog/loggers/fout.go +++ b/internal/io/dlog/loggers/fout.go @@ -12,8 +12,8 @@ type fout struct { } // Logs to both, a file and stdout -func newFout() *fout { - return &fout{file: newFile(), stdout: newStdout()} +func newFout(strategy Strategy) *fout { + return &fout{file: newFile(strategy), stdout: newStdout()} } func (f *fout) Start(ctx context.Context, wg *sync.WaitGroup) { |
