ozzo-log
ozzo-log copied to clipboard
Error of wrong Target
target := log.NewFileTarget()
target.FileName = "\"qweqw\""
l.logger.Targets = append(l.logger.Targets, target)
l.logger.Open()
err = logger.Open()
if err != nil {
panic(err)
}
// run my code
After running this code I get the message only:
Failed to open target: FileTarget was unable to create a log file: open "qweqw": The filename, directory name, or volume label syntax is incorrect.
And the code is executed further silent! (no panic)
IMHO it's wrong behavior