Skip to content

Instantly share code, notes, and snippets.

@werenall
Created April 9, 2020 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save werenall/06bc75c76e682b1425bdde18e09290bd to your computer and use it in GitHub Desktop.
Save werenall/06bc75c76e682b1425bdde18e09290bd to your computer and use it in GitHub Desktop.
Noop duct logger
{
... ...
:mocks.boundary.adapter.logger/noop {}
:duct.middleware.web/log-requests {:logger #ig/ref :mocks.boundary.adapter.logger/noop}
... ...
}
(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))
@werenall
Copy link
Author

werenall commented Apr 9, 2020

I could simply use this instead:
tail -f app/logs/dev.log | grep -Ev '(INFO|ragtime|jetty)'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment