Hello Alias,
I added (in pixlib last revision) channels in the logging API to filter
information.
if you like it, you can get the whole library here :
http://www.osflash.org/pixlib
francis
// basic example with channels:
import com.bourre.log.*;
import com.bourre.utils.*;
// Define two independent log channels to split information.
var XMLChannel:LogChannel = new LogChannel("XML");
var MouseChannel:LogChannel = new LogChannel("MOUSE");
// Add Flash inspector as listener on XMLChannel
Logger.getInstance().addLogListener( LuminicTracer.getInstance(),
XMLChannel );
// Add SOS as listener on MouseChannel and XMLChannel
Logger.getInstance().addLogListener( SosTracer.getInstance(), XMLChannel );
Logger.getInstance().addLogListener( SosTracer.getInstance(),
MouseChannel );
// Log xml object on XMLChannel
Logger.LOG( new XML("<test>test</test>"), LogLevel.WARN, XMLChannel);
// Log _xmouse on MouseChannel
Logger.LOG( this._xmouse, LogLevel.DEBUG, MouseChannel);
// Remove SOS from XMLChannel
Logger.getInstance().removeLogListener( SosTracer.getInstance(),
XMLChannel );
----- Original Message -----
From: "Alias" <[EMAIL PROTECTED]>
To: "Open Source Flash Mailing List" <[email protected]>
Sent: Wednesday, January 04, 2006 11:20 AM
Subject: [osflash] Logger lazyweb request...
> Hi guys,
>
> Once again, I'm looking at loggers...
>
> OK, what I need is this - every class I have uses systrace trace
> commands, which output the following format:
>
> trace("ClassName.functionName(parameter1, parameter2, ...parameterN)");
>
> What I'd like, ideally, is a logger that takes each of these traces,
> filters them, and outputs them to the output panel, a seperate window
> via localconnection or whatever. I'm on the cusp of just writing my
> own, but I'm wondering if there's a logger which already does this
> which I could use?
>
> I really just want to give it classnames that I'm listening to, and
> filter out everything else. I don't mind going through all my code and
> changing trace to something else, but I'd prefer to keep it in the
> single parameter format.
>
> Does this sound familiar to anyone? Any direction much apreciated.
>
> Cheers,
> Alias
>
> _______________________________________________
> 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