Re: How does one print the stacktrace from slingshot?

2015-10-09 Thread Marc O'Morain
If you pass (:throwable ) as an arg before the string it will 
print the stack trace:




(timbre/log :trace (:throwable )  "the true stack trace: ")

On Fri, Oct 9, 2015 at 11:00 AM, Lawrence Krubner
 wrote:

> I'm trying to use Slingshot. I would like to print the stacktrace. If I do: 
>  (timbre/log :trace " the stack trace via slingshot-support " 
> (slingshot-support/stack-trace))
> I get: 
> the stack trace via slingshot-support 
>  [Ljava.lang.StackTraceElement;@72ee66cd
> How do I get what is in StackTraceElement? 
> I looked at these articles: 
> http://www.tutorialspoint.com/java/lang/stacktraceelement_tostring.htm
> http://www.javaworld.com/article/2072391/the-surprisingly-simple-stacktraceelement.html
> but I could not figure out how to translate that to what I'm doing. 
> I also tried: 
>  (timbre/log :trace " the true stack trace: "(.getStackTrace 
> (:throwable )))
> but that gives me: 
>  the true stack trace:  [Ljava.lang.StackTraceElement;@3733df3
> I can not figure out how to see what is in StackTraceElement. 
> If I search on Google for "slingshot print stacktrace" I can not find any 
> examples: 
> https://www.google.com/search?q=slingshot+print+stacktrace=slingshot+pr=chrome.0.69i59j0j69i57j0l3.3861j0j7=chrome_sm=91=UTF-8
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How does one print the stacktrace from slingshot?

2015-10-09 Thread Lawrence Krubner
Ah, not enough sleep. I was catching it a lower level and re throwing it in 
a form that tripped me up. Got rid of low level catch and did: 

 (timbre/log :trace " the true stack trace: " 
(stack/parse-exception (:throwable )))

using clj-stacktrace and all is good. 


On Friday, October 9, 2015 at 6:00:35 AM UTC-4, Lawrence Krubner wrote:
>
>
> I'm trying to use Slingshot. I would like to print the stacktrace. If I 
> do: 
>
>  (timbre/log :trace " the stack trace via slingshot-support " 
> (slingshot-support/stack-trace))
>
>
> I get: 
>
> the stack trace via slingshot-support 
>  [Ljava.lang.StackTraceElement;@72ee66cd
>
> How do I get what is in StackTraceElement? 
>
> I looked at these articles: 
>
> http://www.tutorialspoint.com/java/lang/stacktraceelement_tostring.htm
>
>
> http://www.javaworld.com/article/2072391/the-surprisingly-simple-stacktraceelement.html
>
> but I could not figure out how to translate that to what I'm doing. 
>
> I also tried: 
>
>  (timbre/log :trace " the true stack trace: "(.getStackTrace 
> (:throwable )))
>
> but that gives me: 
>
>  the true stack trace:  [Ljava.lang.StackTraceElement;@3733df3
>
> I can not figure out how to see what is in StackTraceElement. 
>
> If I search on Google for "slingshot print stacktrace" I can not find any 
> examples: 
>
>
> https://www.google.com/search?q=slingshot+print+stacktrace=slingshot+pr=chrome.0.69i59j0j69i57j0l3.3861j0j7=chrome_sm=91=UTF-8
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How does one print the stacktrace from slingshot?

2015-10-09 Thread Lawrence Krubner

I'm trying to use Slingshot. I would like to print the stacktrace. If I do: 

 (timbre/log :trace " the stack trace via slingshot-support " 
(slingshot-support/stack-trace))


I get: 

the stack trace via slingshot-support 
 [Ljava.lang.StackTraceElement;@72ee66cd

How do I get what is in StackTraceElement? 

I looked at these articles: 

http://www.tutorialspoint.com/java/lang/stacktraceelement_tostring.htm

http://www.javaworld.com/article/2072391/the-surprisingly-simple-stacktraceelement.html

but I could not figure out how to translate that to what I'm doing. 

I also tried: 

 (timbre/log :trace " the true stack trace: "(.getStackTrace 
(:throwable )))

but that gives me: 

 the true stack trace:  [Ljava.lang.StackTraceElement;@3733df3

I can not figure out how to see what is in StackTraceElement. 

If I search on Google for "slingshot print stacktrace" I can not find any 
examples: 

https://www.google.com/search?q=slingshot+print+stacktrace=slingshot+pr=chrome.0.69i59j0j69i57j0l3.3861j0j7=chrome_sm=91=UTF-8





-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How does one print the stacktrace from slingshot?

2015-10-09 Thread Lawrence Krubner

Thank you.


On Friday, October 9, 2015 at 6:16:23 AM UTC-4, Marc O'Morain wrote:
>
> If you pass (:throwable ) as an arg before the string it 
> will print the stack trace:
>
> (timbre/log :trace (:throwable )  "the true stack trace: ") 
>
>
>
>
> On Fri, Oct 9, 2015 at 11:00 AM, Lawrence Krubner  > wrote:
>
>>
>> I'm trying to use Slingshot. I would like to print the stacktrace. If I 
>> do: 
>>
>>  (timbre/log :trace " the stack trace via slingshot-support " 
>> (slingshot-support/stack-trace))
>>
>>
>> I get: 
>>
>> the stack trace via slingshot-support 
>>  [Ljava.lang.StackTraceElement;@72ee66cd
>>
>> How do I get what is in StackTraceElement? 
>>
>> I looked at these articles: 
>>
>> http://www.tutorialspoint.com/java/lang/stacktraceelement_tostring.htm
>>
>>
>> http://www.javaworld.com/article/2072391/the-surprisingly-simple-stacktraceelement.html
>>
>> but I could not figure out how to translate that to what I'm doing. 
>>
>> I also tried: 
>>
>>  (timbre/log :trace " the true stack trace: "(.getStackTrace 
>> (:throwable )))
>>
>> but that gives me: 
>>
>>  the true stack trace:  [Ljava.lang.StackTraceElement;@3733df3
>>
>> I can not figure out how to see what is in StackTraceElement. 
>>
>> If I search on Google for "slingshot print stacktrace" I can not find any 
>> examples: 
>>
>>
>> https://www.google.com/search?q=slingshot+print+stacktrace=slingshot+pr=chrome.0.69i59j0j69i57j0l3.3861j0j7=chrome_sm=91=UTF-8
>>
>>
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com 
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.