Skip to content

Error of wrong Target  #16

Open
Open
@githubjeka

Description

@githubjeka
        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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions