webmcp
view framework/env/trace/debug.lua @ 37:fb7b7ac6d560
concat all arguments into one message
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Sat Oct 09 01:35:40 2010 +0200 (2010-10-09) |
parents | 5380305a3d51 |
children | 3480a11da8e8 |
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 message = ""
12 for i= 1,arg.n,1 do
13 message = message..tostring(arg[i]).." "
14 end
15 trace._new_entry{ type = "debug", message = message }
16 end