gre.log( id, msg )
Generate a log message that will be carried through the Storyboard engine logging system. This can be more effective than using standard Lua print statement because the output can be redirected to different outputs.
Parameters:
id An integer value that matches the enumeration in >gre/gre.h< to prefix the
log message with a code, or -1 to simply output the message. If non-negative value
is used, then the output will be subjected to the verbosity logging filtering.
msg The message to output to the logging system.
Returns:
Example:
-- Generate an error message gre.log(1, "This is an error message") -- Generate an diagnostic information message gre.log(4, "This is an info message") -- Generate an unfiltered message gre.log(-1, "This message will always be shown")