Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error of wrong Target #16

Open
githubjeka opened this issue Nov 15, 2017 · 0 comments
Open

Error of wrong Target #16

githubjeka opened this issue Nov 15, 2017 · 0 comments

Comments

@githubjeka
Copy link

githubjeka commented Nov 15, 2017

        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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant