From a995a7baf08c0c5f62eb4bcd7a0eca744503e4da Mon Sep 17 00:00:00 2001 From: Peter Taoussanis Date: Thu, 30 Jan 2014 15:50:13 +0700 Subject: [PATCH] Fix regression: spit appender should print newlines (ristkari, ag0rex) --- src/taoensso/timbre.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/taoensso/timbre.clj b/src/taoensso/timbre.clj index 252457b..bdf7a16 100644 --- a/src/taoensso/timbre.clj +++ b/src/taoensso/timbre.clj @@ -168,7 +168,7 @@ :min-level nil :enabled? false :async? false :rate-limit nil :fn (fn [{:keys [ap-config output]}] ; Can use any appender args (when-let [filename (:spit-filename ap-config)] - (try (spit filename output :append true) + (try (spit filename (str output "\n") :append true) (catch java.io.IOException _))))}}}) (utils/defonce* config (atom example-config))