-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Is there a way for Timbre to create log location on disk if it does not exist ? #93
Comments
Hi Ross, Not currently. You'll normally want to do that with something like a bash script or some Java, e.g: (import java.io.File)
(defn exists? [path] (when-not (str/blank? path) (.exists (File. ^String path))))
(defn mkdirs "Creates all parent directories for the passed file."
[^File f] (.mkdirs (.getParentFile (.getCanonicalFile f)))) Does that help? |
Hi. Yes thanks, I was just being lazy, seeing if this was already handled :-) |
Tbh it's something that the file-based appenders should probably already be doing automatically. If they're not, would be happy to accept a PR that added this. I don't use/maintain any of the file appenders myself so not actually sure how they work currently :-) |
#93 create spit appending path if it does not exist (@rossputin)
This will be addressed in v4, closing. |
I may have missed this, but I did not spot it in the readme, or with a quick glance over the API docs.
Thanks.
The text was updated successfully, but these errors were encountered: