Sorry, Log, no more free ride for you.

Putting you at the top level screws up use of another Log class.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4874 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2007-11-13 09:30:23 +00:00
parent 5ae87258fa
commit 376f5e680a
24 changed files with 28 additions and 21 deletions
@@ -23,6 +23,7 @@ package com.threerings.crowd.chat.client {
import com.threerings.util.ArrayUtil;
import com.threerings.util.HashMap;
import com.threerings.util.Log;
import com.threerings.util.Map;
import com.threerings.util.ObserverList;
import com.threerings.util.ResultListener;
@@ -21,6 +21,7 @@
package com.threerings.crowd.chat.client {
import com.threerings.util.Log;
import com.threerings.util.Name;
import com.threerings.util.StringUtil;
@@ -24,6 +24,7 @@ package com.threerings.crowd.client {
import flash.utils.getTimer; // function import
import com.threerings.util.ObserverList;
import com.threerings.util.Log;
import com.threerings.util.ResultListener;
import com.threerings.presents.client.BasicDirector;
@@ -26,6 +26,8 @@ import flash.display.DisplayObjectContainer;
import mx.core.IRawChildrenContainer; // a simple interface from flex
import com.threerings.util.Log;
import com.threerings.crowd.data.PlaceObject;
/**
+2
View File
@@ -29,6 +29,8 @@ import flash.net.Socket;
import flash.utils.ByteArray;
import flash.utils.Endian;
import com.threerings.util.Log;
/**
* Reads socket data until a complete frame is available.
* This dispatches a FrameAvailableEvent.FRAME_AVAILABLE once a frame
@@ -28,6 +28,7 @@ import flash.utils.ByteArray;
import flash.utils.IDataInput;
import com.threerings.util.ClassUtil;
import com.threerings.util.Log;
public class ObjectInputStream
{
@@ -26,6 +26,7 @@ import flash.utils.IDataOutput;
import com.threerings.util.ClassUtil;
import com.threerings.util.HashMap;
import com.threerings.util.Log;
import com.threerings.util.Short;
public class ObjectOutputStream
@@ -22,6 +22,7 @@
package com.threerings.io.streamers {
import com.threerings.util.ClassUtil;
import com.threerings.util.Log;
import com.threerings.io.ArrayMask;
import com.threerings.io.ObjectInputStream;
@@ -28,6 +28,7 @@ import flash.events.TimerEvent;
import flash.utils.Timer;
import com.threerings.util.Log;
import com.threerings.util.MethodQueue;
import com.threerings.util.ObserverList;
@@ -28,6 +28,7 @@ import flash.utils.getTimer; // function import
import com.threerings.util.ClassUtil;
import com.threerings.util.HashMap;
import com.threerings.util.Log;
import com.threerings.presents.dobj.CompoundEvent;
import com.threerings.presents.dobj.DEvent;
@@ -31,6 +31,7 @@ import flash.net.Socket;
import flash.utils.ByteArray;
import flash.utils.Endian;
import com.threerings.util.Log;
import com.threerings.util.StringUtil;
import com.threerings.io.FrameAvailableEvent;
@@ -21,6 +21,8 @@
package com.threerings.presents.client {
import com.threerings.util.Log;
/**
* Provides the basic functionality used to dispatch invocation
* notification events.
@@ -25,6 +25,7 @@ import flash.errors.IllegalOperationError;
import flash.utils.getTimer; // function import
import com.threerings.util.HashMap;
import com.threerings.util.Log;
import com.threerings.util.Wrapped;
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
@@ -21,6 +21,7 @@
package com.threerings.presents.client {
import com.threerings.util.Log;
import com.threerings.util.StringUtil;
import com.threerings.presents.data.AuthCodes;
@@ -22,6 +22,7 @@
package com.threerings.presents.data {
import com.threerings.util.ClassUtil;
import com.threerings.util.Log;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
@@ -26,6 +26,7 @@ import flash.errors.IllegalOperationError;
import flash.events.EventDispatcher;
import com.threerings.util.ClassUtil;
import com.threerings.util.Log;
import com.threerings.util.StringBuilder;
import com.threerings.io.ObjectInputStream;
@@ -25,6 +25,7 @@ import com.threerings.util.ArrayIterator;
import com.threerings.util.Cloneable;
import com.threerings.util.Equalable;
import com.threerings.util.Iterator;
import com.threerings.util.Log;
import com.threerings.util.StringBuilder;
import com.threerings.util.Util;
@@ -24,6 +24,7 @@ package com.threerings.presents.dobj {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Log;
import com.threerings.util.StringBuilder;
/**
@@ -24,6 +24,7 @@ package com.threerings.presents.dobj {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Log;
import com.threerings.util.StringBuilder;
import com.threerings.util.Wrapped;
@@ -24,6 +24,7 @@ package com.threerings.presents.dobj {
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.util.Log;
import com.threerings.util.StringBuilder;
/**
@@ -25,6 +25,7 @@ import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.io.Streamable;
import com.threerings.util.Log;
import com.threerings.util.StreamableArrayList;
/**
@@ -21,6 +21,8 @@
package com.threerings.presents.util {
import com.threerings.util.Log;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.DObjectManager;
import com.threerings.presents.dobj.ObjectAccessError;
@@ -19,22 +19,13 @@
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package {
package com.threerings.util {
import flash.utils.getQualifiedClassName;
//import mx.logging.ILogger;
//import mx.logging.LogEventLevel;
//import mx.logging.targets.TraceTarget;
import com.threerings.util.LogTarget;
/**
* A simple logging mechanism.
*
* This class need not be imported.
*
* Typical usage for creating a Log to be used by the entire class would be:
* public class MyClass
* {
@@ -49,14 +40,6 @@ import com.threerings.util.LogTarget;
* ....
*/
public class Log
// TODO: We should really change the name of this class.
// The reason for this is that when we load a client .swf we load it into
// a child ApplicationDomain so that it can share and interoperate with
// a few of our classes. Any classes we define will block classes of the
// same name being used by client swfs, as they'll instead instantiate
// our versions. Normally this isn't a problem because our classnames are
// things like com.threerings.io.Streamable, but this class is just "Log".
// So: we should fix this up.
{
/**
* Retrieve a Log for the specififed class.
+1 -3
View File
@@ -22,9 +22,7 @@
package com.threerings.util {
/**
* A very simple Logging interface.
* Used with the top-level class QUOTE in this package ENDQUOTE...
* (it's actually up above 'com', so it never needs importing...)
* A very simple Logging interface used by Log.
*/
public interface LogTarget
{