go-ozzo / ozzo-log

A Go (golang) package providing high-performance asynchronous logging, message filtering by severity and category, and multiple message targets.
MIT License
122 stars 31 forks source link

Error of wrong Target #16

Open githubjeka opened 6 years ago

githubjeka commented 6 years ago
        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