From 902d12e1ac061d135f877f207aca174d9083b322 Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Tue, 8 Aug 2006 22:43:39 +0000 Subject: [PATCH] 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 --- src/as/Log.as | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/as/Log.as b/src/as/Log.as index d9002ce53..15f17ff76 100644 --- a/src/as/Log.as +++ b/src/as/Log.as @@ -40,6 +40,15 @@ public class Log 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 */