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

Option to add directory #1400

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

willmcgugan
Copy link

This is an attempt to resolve #120

I'm looking for early feedback. Happy to make any changes if there is an agreement on the idea, and I can update the docs. BTW this work is sponsored by my client :)

The gist is that there would be a new section in the configuration that would check if a directory exists, and optionally create it. Here's an example:

[directory:foo]
path = /foo/bar
create = True
mode = 777

Only path is required. If create is True, the directory will be created if it doesn't already exist. If create is False (the default), then it will fail if the directory doesn't exist.

Should the directory config have a chown value to set ownership of the new directory?

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

Successfully merging this pull request may close these issues.

Option to create directory of specified log files
2 participants