Skip to content

Change LogFile setting handling #101

Open
@stevechilds

Description

@stevechilds

Current the library requires you to specify a log file within the config file - this is not ideal as you may well not know the folder ahead of runtime to put into the file. (e.g. you're in a Symfony app and the folder could be anywhere in relation to the config file).

What I did was set the parameter to './' in the file and then planned to override it with the next line of code, not ideal, but workable.

However, that doesn't work as it assumes the file is already existing when you call setLogPath(). Can you change it so that it doesn't assume the file exists, or at the very least, if it doesn't exist either ignore the error (and don't raise an exception) or simply create it.

Cheers.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions