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 3294a46a28
commit 88bda5c306

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{