ozzo-log icon indicating copy to clipboard operation
ozzo-log copied to clipboard

Error of wrong Target

Open githubjeka opened this issue 7 years ago • 0 comments

        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

githubjeka avatar Nov 15 '17 06:11 githubjeka