Added a convenient way to quickly add debugging output to a program without
importing anything: Log.testing("bla bla bla");
trace() is global too, but that goes directly to the debugger, not to the
Log system, so we can't see trace() statements in the firebug console,
for example.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4306 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -40,6 +40,15 @@ public class Log
|
|||||||
return new Log(mx.logging.Log.getLogger(path));
|
return new Log(mx.logging.Log.getLogger(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A convenience function for quickly and easily inserting printy
|
||||||
|
* statements during application development.
|
||||||
|
*/
|
||||||
|
public static function testing (msg :String, ... params) :void
|
||||||
|
{
|
||||||
|
mx.logging.Log.getLogger("testing").debug(msg, params);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user