summaryrefslogtreecommitdiff
path: root/internal/io/dlog/loggers/fout.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2021-09-28 21:11:50 +0300
committerPaul Buetow <paul@buetow.org>2021-10-02 12:26:36 +0300
commit609921f9c783941eaa9019a92b78ec45b49d681c (patch)
treec4fc6b20404d0f922dc2825e4624be8c04479cbf /internal/io/dlog/loggers/fout.go
parentfcaa94c7453efa0d74e330128c0f5c2cde8f11b3 (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.go4
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) {