Back

-log! (clj)

(source)

function

(-log! config level ?ns-str ?file ?line msg-type ?err vargs_ ?base-data) (-log! config level ?ns-str ?file ?line msg-type ?err vargs_ ?base-data callsite-id) (-log! config level ?ns-str ?file ?line msg-type ?err vargs_ ?base-data callsite-id spying?) (-log! config level ?ns-str ?file ?line ?column msg-type ?err vargs_ ?base-data callsite-id spying?)
Core low-level log fn. Implementation detail!

Examples

aliostad/deep-learning-lang-detection
(ns server.projects-test
  (:require [server.projects :as sut]
            [midje.sweet :refer :all]
            [hydrox.core :as hydrox]
            [taoensso.timbre :refer [log spy] :as timbre]
            [clojure.test :refer [deftest is] :as t]
            [clojure.test.check :as tc]
            [clojure.spec :as s]
            [clojure.spec.gen :as gen]
            [clojure.spec.test :as stest]
            [server.db :as db]))

(background (timbre/-log! anything anything anything anything anything anything anything anything anything anything) => nil)
aliostad/deep-learning-lang-detection
(ns server.namespaces-test
  (:require [server.namespaces :as sut]
            [midje.sweet :refer :all]
            [hydrox.core :as hydrox]
            [taoensso.timbre :refer [log spy] :as timbre]
            [clojure.test :refer [deftest is] :as t]
            [clojure.test.check :as tc]
            [clojure.spec :as s]
            [clojure.spec.gen :as gen]
            [clojure.spec.test :as stest]
            [server.db :as db]))

(background (timbre/-log! anything anything anything anything anything anything anything anything anything anything) => nil)
zalando-incubator/chisel
(ns chisel.access-logs-test
  (:require [clojure.test :refer :all]
            [clj-http.client :as http]
            [taoensso.timbre :as timbre]
            [chisel.access-logs :as access-logs]
            [chisel.test-utils :as test-utils]
            [io.pedestal.log :as pedestal-log]))

  (testing "When timbre is used as backend, it gets called on http request"
    (let [log-args (atom nil)]
      (with-redefs [timbre/-log! (fn [& args] (reset! log-args args))]
        (test-utils/with-running-server {:port        port
                                         :interceptor access-logs/interceptor}
          (http/get location)
          (is (not (nil? @log-args)))))))