webmcp
view framework/env/trace/debug.lua @ 36:5380305a3d51
allow multiple arguments to trace.debug
you can now write trace.debug("bla", 2, ...)
you can now write trace.debug("bla", 2, ...)
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Sat Oct 09 00:57:26 2010 +0200 (2010-10-09) |
parents | 5cba83b3f411 |
children | fb7b7ac6d560 |
line source
1 --[[--
2 trace.debug(...)
3 arg -- messages to be inserted into the trace log
6 This function can be used to include debug output in the trace log.
8 --]]--
10 function trace.debug(...)
11 for i,message in ipairs(arg) do
12 trace._new_entry{ type = "debug", message = tostring(message) }
13 end
14 end