Actually the shodan library has recently* added some macros, so that when you 
say (console/log "some text"), the reported line number in the browser console 
will link you to the line in your clojurescript source where you called 
console/log, instead of the line in the library where (.log js/console "some 
text") is actually invoked. Works like a charm!

* https://github.com/noprompt/shodan/issues/2

On Wednesday, November 12, 2014 10:53:13 AM UTC-5, Colin Yates wrote:
> So having spent 5 minutes writing one now know why there aren't any.
> 
> If you have a library then all the invocations appear to come from that 
> library in js/console rather than the call site of the log/info invocation. 
> OK, macros solve this problem, except we can't do that in clojurescript.
> 
> js/console it is :).
> 
> On Wednesday, 12 November 2014 15:29:13 UTC, Colin Yates  wrote:
> > Despite a plethora of great clojure logging libraries I can't find one that 
> > works in Clojurescript.
> > 
> > Any recommendations?

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to