you might already have this way ... but probably only during debug since it throws an exception and parses it.
http://forums.sun.com/thread.jspa?threadID=548409&start=0 that page also mentions something that sounds better: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StackTraceElement.html On Sun, May 3, 2009 at 9:58 AM, Mark Volkmann <[email protected]>wrote: > > Is there a special variable that holds the name of the currently > running function so it can be output in a logging message? > > I'm thinking of something like this: > > (defn my-function [] > (println "entered" *current-function*) > ... > ) > > -- > R. Mark Volkmann > Object Computing, Inc. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---
