|
Drag[en]gine Script Module DragonScript 1.35
|
Helper class to simplify logging of complex functions. More...
Public Member Functions | |
| void | addValue (String name, Object value) |
| Add or replace value. | |
| void | log (Element element, String className, String functionName, String message) |
| Log message with all collected values. | |
| void | log (String className, String functionName, String message) |
| Log message with all collected values. | |
| DebugLogHelper | new () |
| Create log helper. | |
Public Attributes | |
| Array | pValues |
Helper class to simplify logging of complex functions.
To use create log helper. During the run of the function add values as they are calculated. Upon reaching important locations, like early exits or error conditions, log a message and all values collected so far are added to the message.
| void Dragengine.Debugging.DebugLogHelper.addValue | ( | String | name, |
| Object | value ) |
| void Dragengine.Debugging.DebugLogHelper.log | ( | Element | element, |
| String | className, | ||
| String | functionName, | ||
| String | message ) |
| void Dragengine.Debugging.DebugLogHelper.log | ( | String | className, |
| String | functionName, | ||
| String | message ) |
| DebugLogHelper Dragengine.Debugging.DebugLogHelper.new | ( | ) |
| Array Dragengine.Debugging.DebugLogHelper.pValues |
Referenced by addValue(), log(), log(), and new().