This commit is contained in:
bjdgy
2023-12-26 13:00:55 +08:00
parent 17492d8172
commit 638a99275e
2 changed files with 15 additions and 6 deletions

View File

@@ -28,6 +28,10 @@ var (
logName = "anylink.log"
)
func init() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
}
// 实现 os.Writer 接口
type logWriter struct {
UseStdout bool