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:
@@ -23,6 +23,7 @@ package com.threerings.crowd.chat.client {
|
|||||||
|
|
||||||
import com.threerings.util.ArrayUtil;
|
import com.threerings.util.ArrayUtil;
|
||||||
import com.threerings.util.HashMap;
|
import com.threerings.util.HashMap;
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.Map;
|
import com.threerings.util.Map;
|
||||||
import com.threerings.util.ObserverList;
|
import com.threerings.util.ObserverList;
|
||||||
import com.threerings.util.ResultListener;
|
import com.threerings.util.ResultListener;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
package com.threerings.crowd.chat.client {
|
package com.threerings.crowd.chat.client {
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
import com.threerings.util.StringUtil;
|
import com.threerings.util.StringUtil;
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ package com.threerings.crowd.client {
|
|||||||
import flash.utils.getTimer; // function import
|
import flash.utils.getTimer; // function import
|
||||||
|
|
||||||
import com.threerings.util.ObserverList;
|
import com.threerings.util.ObserverList;
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.ResultListener;
|
import com.threerings.util.ResultListener;
|
||||||
|
|
||||||
import com.threerings.presents.client.BasicDirector;
|
import com.threerings.presents.client.BasicDirector;
|
||||||
|
|||||||
@@ -26,6 +26,8 @@ import flash.display.DisplayObjectContainer;
|
|||||||
|
|
||||||
import mx.core.IRawChildrenContainer; // a simple interface from flex
|
import mx.core.IRawChildrenContainer; // a simple interface from flex
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
|
|
||||||
import com.threerings.crowd.data.PlaceObject;
|
import com.threerings.crowd.data.PlaceObject;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -29,6 +29,8 @@ import flash.net.Socket;
|
|||||||
import flash.utils.ByteArray;
|
import flash.utils.ByteArray;
|
||||||
import flash.utils.Endian;
|
import flash.utils.Endian;
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Reads socket data until a complete frame is available.
|
* Reads socket data until a complete frame is available.
|
||||||
* This dispatches a FrameAvailableEvent.FRAME_AVAILABLE once a frame
|
* This dispatches a FrameAvailableEvent.FRAME_AVAILABLE once a frame
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import flash.utils.ByteArray;
|
|||||||
import flash.utils.IDataInput;
|
import flash.utils.IDataInput;
|
||||||
|
|
||||||
import com.threerings.util.ClassUtil;
|
import com.threerings.util.ClassUtil;
|
||||||
|
import com.threerings.util.Log;
|
||||||
|
|
||||||
public class ObjectInputStream
|
public class ObjectInputStream
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import flash.utils.IDataOutput;
|
|||||||
|
|
||||||
import com.threerings.util.ClassUtil;
|
import com.threerings.util.ClassUtil;
|
||||||
import com.threerings.util.HashMap;
|
import com.threerings.util.HashMap;
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.Short;
|
import com.threerings.util.Short;
|
||||||
|
|
||||||
public class ObjectOutputStream
|
public class ObjectOutputStream
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
package com.threerings.io.streamers {
|
package com.threerings.io.streamers {
|
||||||
|
|
||||||
import com.threerings.util.ClassUtil;
|
import com.threerings.util.ClassUtil;
|
||||||
|
import com.threerings.util.Log;
|
||||||
|
|
||||||
import com.threerings.io.ArrayMask;
|
import com.threerings.io.ArrayMask;
|
||||||
import com.threerings.io.ObjectInputStream;
|
import com.threerings.io.ObjectInputStream;
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import flash.events.TimerEvent;
|
|||||||
|
|
||||||
import flash.utils.Timer;
|
import flash.utils.Timer;
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.MethodQueue;
|
import com.threerings.util.MethodQueue;
|
||||||
import com.threerings.util.ObserverList;
|
import com.threerings.util.ObserverList;
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ import flash.utils.getTimer; // function import
|
|||||||
|
|
||||||
import com.threerings.util.ClassUtil;
|
import com.threerings.util.ClassUtil;
|
||||||
import com.threerings.util.HashMap;
|
import com.threerings.util.HashMap;
|
||||||
|
import com.threerings.util.Log;
|
||||||
|
|
||||||
import com.threerings.presents.dobj.CompoundEvent;
|
import com.threerings.presents.dobj.CompoundEvent;
|
||||||
import com.threerings.presents.dobj.DEvent;
|
import com.threerings.presents.dobj.DEvent;
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ import flash.net.Socket;
|
|||||||
import flash.utils.ByteArray;
|
import flash.utils.ByteArray;
|
||||||
import flash.utils.Endian;
|
import flash.utils.Endian;
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.StringUtil;
|
import com.threerings.util.StringUtil;
|
||||||
|
|
||||||
import com.threerings.io.FrameAvailableEvent;
|
import com.threerings.io.FrameAvailableEvent;
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
package com.threerings.presents.client {
|
package com.threerings.presents.client {
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides the basic functionality used to dispatch invocation
|
* Provides the basic functionality used to dispatch invocation
|
||||||
* notification events.
|
* notification events.
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import flash.errors.IllegalOperationError;
|
|||||||
import flash.utils.getTimer; // function import
|
import flash.utils.getTimer; // function import
|
||||||
|
|
||||||
import com.threerings.util.HashMap;
|
import com.threerings.util.HashMap;
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.Wrapped;
|
import com.threerings.util.Wrapped;
|
||||||
|
|
||||||
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
|
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
package com.threerings.presents.client {
|
package com.threerings.presents.client {
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.StringUtil;
|
import com.threerings.util.StringUtil;
|
||||||
|
|
||||||
import com.threerings.presents.data.AuthCodes;
|
import com.threerings.presents.data.AuthCodes;
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
package com.threerings.presents.data {
|
package com.threerings.presents.data {
|
||||||
|
|
||||||
import com.threerings.util.ClassUtil;
|
import com.threerings.util.ClassUtil;
|
||||||
|
import com.threerings.util.Log;
|
||||||
|
|
||||||
import com.threerings.io.ObjectInputStream;
|
import com.threerings.io.ObjectInputStream;
|
||||||
import com.threerings.io.ObjectOutputStream;
|
import com.threerings.io.ObjectOutputStream;
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ import flash.errors.IllegalOperationError;
|
|||||||
import flash.events.EventDispatcher;
|
import flash.events.EventDispatcher;
|
||||||
|
|
||||||
import com.threerings.util.ClassUtil;
|
import com.threerings.util.ClassUtil;
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.StringBuilder;
|
import com.threerings.util.StringBuilder;
|
||||||
|
|
||||||
import com.threerings.io.ObjectInputStream;
|
import com.threerings.io.ObjectInputStream;
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import com.threerings.util.ArrayIterator;
|
|||||||
import com.threerings.util.Cloneable;
|
import com.threerings.util.Cloneable;
|
||||||
import com.threerings.util.Equalable;
|
import com.threerings.util.Equalable;
|
||||||
import com.threerings.util.Iterator;
|
import com.threerings.util.Iterator;
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.StringBuilder;
|
import com.threerings.util.StringBuilder;
|
||||||
import com.threerings.util.Util;
|
import com.threerings.util.Util;
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ package com.threerings.presents.dobj {
|
|||||||
import com.threerings.io.ObjectInputStream;
|
import com.threerings.io.ObjectInputStream;
|
||||||
import com.threerings.io.ObjectOutputStream;
|
import com.threerings.io.ObjectOutputStream;
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.StringBuilder;
|
import com.threerings.util.StringBuilder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ package com.threerings.presents.dobj {
|
|||||||
import com.threerings.io.ObjectInputStream;
|
import com.threerings.io.ObjectInputStream;
|
||||||
import com.threerings.io.ObjectOutputStream;
|
import com.threerings.io.ObjectOutputStream;
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.StringBuilder;
|
import com.threerings.util.StringBuilder;
|
||||||
import com.threerings.util.Wrapped;
|
import com.threerings.util.Wrapped;
|
||||||
|
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ package com.threerings.presents.dobj {
|
|||||||
import com.threerings.io.ObjectInputStream;
|
import com.threerings.io.ObjectInputStream;
|
||||||
import com.threerings.io.ObjectOutputStream;
|
import com.threerings.io.ObjectOutputStream;
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.StringBuilder;
|
import com.threerings.util.StringBuilder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ import com.threerings.io.ObjectInputStream;
|
|||||||
import com.threerings.io.ObjectOutputStream;
|
import com.threerings.io.ObjectOutputStream;
|
||||||
import com.threerings.io.Streamable;
|
import com.threerings.io.Streamable;
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
import com.threerings.util.StreamableArrayList;
|
import com.threerings.util.StreamableArrayList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
package com.threerings.presents.util {
|
package com.threerings.presents.util {
|
||||||
|
|
||||||
|
import com.threerings.util.Log;
|
||||||
|
|
||||||
import com.threerings.presents.dobj.DObject;
|
import com.threerings.presents.dobj.DObject;
|
||||||
import com.threerings.presents.dobj.DObjectManager;
|
import com.threerings.presents.dobj.DObjectManager;
|
||||||
import com.threerings.presents.dobj.ObjectAccessError;
|
import com.threerings.presents.dobj.ObjectAccessError;
|
||||||
|
|||||||
@@ -19,22 +19,13 @@
|
|||||||
// License along with this library; if not, write to the Free Software
|
// License along with this library; if not, write to the Free Software
|
||||||
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
package {
|
package com.threerings.util {
|
||||||
|
|
||||||
import flash.utils.getQualifiedClassName;
|
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.
|
* 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:
|
* Typical usage for creating a Log to be used by the entire class would be:
|
||||||
* public class MyClass
|
* public class MyClass
|
||||||
* {
|
* {
|
||||||
@@ -49,14 +40,6 @@ import com.threerings.util.LogTarget;
|
|||||||
* ....
|
* ....
|
||||||
*/
|
*/
|
||||||
public class Log
|
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.
|
* Retrieve a Log for the specififed class.
|
||||||
@@ -22,9 +22,7 @@
|
|||||||
package com.threerings.util {
|
package com.threerings.util {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A very simple Logging interface.
|
* A very simple Logging interface used by Log.
|
||||||
* Used with the top-level class QUOTE in this package ENDQUOTE...
|
|
||||||
* (it's actually up above 'com', so it never needs importing...)
|
|
||||||
*/
|
*/
|
||||||
public interface LogTarget
|
public interface LogTarget
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user