From bcd9f7f9c4071b0d9546324ae44fdee73ce75023 Mon Sep 17 00:00:00 2001 From: Dan Sapala Date: Sat, 12 Dec 2015 15:40:06 -0500 Subject: [PATCH] create log path in rotor appender --- src/taoensso/timbre/appenders/3rd_party/rotor.clj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/taoensso/timbre/appenders/3rd_party/rotor.clj b/src/taoensso/timbre/appenders/3rd_party/rotor.clj index 2d259bc3..84979495 100644 --- a/src/taoensso/timbre/appenders/3rd_party/rotor.clj +++ b/src/taoensso/timbre/appenders/3rd_party/rotor.clj @@ -60,6 +60,8 @@ output-str (output-fn data)] (when-let [log (io/file path)] (try + (when-not (.exists log) + (io/make-parents log)) (when (> (.length log) max-size) (rotate-logs path backlog)) (spit path (str (output-fn data) "\n") :append true)