Hey there Anthony,

I posted a few weeks ago with a slight modification for Flashout that 
gives you full object tracing.   If you would like to use it just backup 
your old Flashout.as and replace it with this:

http://fundamentalflaws.com/Flashout.as

Hope this is helpful.
-Ken

Anthony Lee wrote:
> Hi Guys,
>
> I was happily using the ASDT logger class till I found Kelvin's code to
> hack LuminicBox and SOS together. Very nice full object tracing, but since
> SOS doesn't run in Eclipse I still like using AS Logger for basic
> feedback.
>
> So I played with both Classes for a while trying to come up with an bridge
> but it was beyond me. In the end I made this clumsy hack to asdt.Log.
>
> Forgive me masters, please show me the path.
>
> Tony
>
> ----------------
>
>       private function Log ()
>       {
>               // Singelton
>               _logger = LoggerFactory.createLogger(_loggerName);
>
>               //Setup SOS
>               LogWrapper.getInstance().init();
>         LogWrapper.getLog().addPublisher(new SOSLogPublisher("Log Forward"));
>       }
>
>       public static function addMessage ():Void
>       {
>               var instance:Log;
>               if (arguments.length == 4)
>               {
>                       arguments.splice(1, 0, Log.VERBOSE);
>               }
>               instance = getInstance();
>
>               if (typeof arguments[0] == 'string' || typeof arguments[0] == 
> 'number'
> || typeof arguments[0] == 'boolean' || arguments[0] == undefined){
>                       if (arguments[0] == undefined) arguments[0] = 
> "undefined";
>                       arguments[0] = arguments[0].toString();
>                       instance.addMessageToBuffer.apply(instance, arguments);
>                       _root.debugOutput.text += arguments[0].toString()+"\n";
>               } else {
>                       var args2:Array = arguments.slice(0);
>                       args2[0] = ">> SOS";
>                       instance.addMessageToBuffer.apply(instance, args2);
>                       LogWrapper.getLog().info(arguments[2]+" >> 
> line::"+arguments[4]);
>                       LogWrapper.getLog().debug(arguments[0]);
>               }
>       }
>
>
> _______________________________________________
> osflash mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/osflash_osflash.org
>   


_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to