Created
April 9, 2020 14:02
-
-
Save werenall/06bc75c76e682b1425bdde18e09290bd to your computer and use it in GitHub Desktop.
Noop duct logger
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... ... | |
:mocks.boundary.adapter.logger/noop {} | |
:duct.middleware.web/log-requests {:logger #ig/ref :mocks.boundary.adapter.logger/noop} | |
... ... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns mocks.boundary.adapter.logger.noop | |
(:require [duct.logger :as logger] | |
[integrant.core :as ig])) | |
(defrecord TestLogger [] | |
logger/Logger | |
(-log [_ level ns-str file line id event data])) | |
(defmethod ig/init-key | |
:mocks.boundary.adapter.logger/noop | |
[_ spec] | |
(->TestLogger)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I could simply use this instead:
tail -f app/logs/dev.log | grep -Ev '(INFO|ragtime|jetty)'