Tim is correct. The log macro is what you want to use when you're
really just wanting to log something; in that case the message
expression won't get evaluated unless the particular logging level is
enabled.
The debug function is for when you want to execute an expression
regardless, but would also like to have the expression and its result
logged. In this way it is analogous to the time function.
I agree the naming isn't very self-descriptive (trying to keep things
short), but I welcome any suggestions.
Also note that the log levels are like commons-logging/log4j: trace,
debug, info, warn, error, fatal. I've submitted the code to assembla,
but once it's up in git, I plan on adding support for levels that
correspond to java.util.logging.
On Jul 23, 4:19 am, Laurent PETIT <
laurent.pe...@gmail.com> wrote:
> Thanks for the explanation, that makes sense.
>
> 2009/7/23 Timothy Pratley <
timothyprat...@gmail.com>