Last active
May 11, 2017 08:27
-
-
Save deque-blog/2f799a8c54cbb2ffed391ad0e4056bf8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn function-log-prefix | |
"Return the prefix of the log entry for a function" | |
[fct-name] | |
(str "[TRACE] Call to \"" fct-name "\" with arguments: ")) | |
(defn log-symbol-values | |
"Log the values of a list of symbols, with a prefix" | |
[prefix symbols values] | |
(str prefix (zipmap symbols values))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment