Skip to content

Instantly share code, notes, and snippets.

Avatar

Casper Kolkman caskolkm

View GitHub Profile
@caskolkm
caskolkm / logging.cljc
Last active Mar 14, 2019
Simple Clojurescript logging using Google Closure logging tools, now in cljc :)
View logging.cljc
(ns app.logging
(:refer-clojure :exclude [time])
(:require #?(:clj [clojure.tools.logging :as log]
:cljs [goog.log :as glog]))
#?(:cljs (:import goog.debug.Console)))
#?(:cljs
(def logger
(glog/getLogger "app")))