Minor fixes

This commit is contained in:
世界
2022-07-30 14:50:33 +08:00
parent d3378a575c
commit 2ce09b6ffd
13 changed files with 87 additions and 24 deletions

View File

@@ -6,6 +6,7 @@ import (
"os"
"time"
"github.com/sagernet/sing/common"
F "github.com/sagernet/sing/common/format"
)
@@ -41,6 +42,10 @@ func (f *simpleFactory) NewLogger(tag string) ContextLogger {
return &simpleLogger{f, tag}
}
func (f *simpleFactory) Close() error {
return common.Close(f.writer)
}
var _ ContextLogger = (*simpleLogger)(nil)
type simpleLogger struct {