Fix panic when closing Box before Start with file log output

This commit is contained in:
世界
2025-12-26 15:58:13 +08:00
parent 78b4eac974
commit bf4a9edc89

View File

@@ -40,6 +40,7 @@ func New(options Options) (Factory, error) {
case "stdout":
logWriter = os.Stdout
default:
logWriter = io.Discard
logFilePath = logOptions.Output
}
logFormatter := Formatter{