diff --git a/src/micro_blog/logging/pedestal_telmere.clj b/src/micro_blog/logging/pedestal_telmere.clj index f422885..175b4b6 100644 --- a/src/micro_blog/logging/pedestal_telmere.clj +++ b/src/micro_blog/logging/pedestal_telmere.clj @@ -4,32 +4,32 @@ (defrecord TelmereLogger [logger-name] pedestal-log/LoggerSource - (-trace [this body] + (-trace [_this body] (tel/log! {:level :trace :id logger-name} body)) - (-trace [this body throwable] + (-trace [_this body throwable] (tel/log! {:level :trace :id logger-name :error throwable} body)) - (-debug [this body] + (-debug [_this body] (tel/log! {:level :debug :id logger-name} body)) - (-debug [this body throwable] + (-debug [_this body throwable] (tel/log! {:level :debug :id logger-name :error throwable} body)) - (-info [this body] + (-info [_this body] (tel/log! {:level :info :id logger-name} body)) - (-info [this body throwable] + (-info [_this body throwable] (tel/log! {:level :info :id logger-name :error throwable} body)) - (-warn [this body] + (-warn [_this body] (tel/log! {:level :warn :id logger-name} body)) - (-warn [this body throwable] + (-warn [_this body throwable] (tel/log! {:level :warn :id logger-name :error throwable} body)) - (-error [this body] + (-error [_this body] (tel/log! {:level :error :id logger-name} body)) - (-error [this body throwable] + (-error [_this body throwable] (tel/log! {:level :error :id logger-name :error throwable} body)) - (-level-enabled? [this level-key] + (-level-enabled? [_this level-key] ;; Telmere doesn't have a direct level check, so we'll assume all levels are enabled ;; You can customize this based on your Telmere configuration (contains? #{:trace :debug :info :warn :error} level-key)))