I found it to be pretty trivial to add a target for Alcon:

http://fgpwiki.corewatch.net/wiki/Alcon

and that's what I'm using right now.  Though XPanel is a lot lighter
weight (if you ignore the .NET requirement), so it would be nicer to
use that if possible.  I tried to look briefly through the code to
figure out what the problem was, but couldn't narrow it down.

One thing that I did run into with MTASC doing something different
than the FlashIDE is if you have a function in your class called
'trace'.  I had put a trace() statement in my class, and the FlashIDE
resolved this as the trace that displays to the output window, but
MTASC resolved it as `this.trace()`.  That's probably not the problem
you're having, but I figured I'd mention it just in case. :)

  -Andy

On 1/25/07, eka <[EMAIL PROTECTED]> wrote:
Hello :)

yes the unit tests of the XPanelTarget (and the vegas.logging package) are
in progress... for the moment the XPanel bug in MTASC ! :( Sorry for this
problem :)

I want clear this bug in the class this next week-end

PS : i have add a new target little time ago with the FireBugTarget and you
can test now this target with the FireBug extension (
https://addons.mozilla.org/firefox/1843/)

For the moment in my projects i use in windows the SOS console and in other
system the FlashInspector... The Xpanel is a good panel but i must search
the problem of my target in MTASC !

My objective is to do my personal console with Apollo when apollo will be in
this beta or final version !

2007/1/25, Andy Herrman <[EMAIL PROTECTED]>:
>
> I like what I see so far for VEGAS, especially the XPanel target.
> However, I'm getting a weird problem where if I build the SWF using
> the Flash IDE everything works, but if I use MTASC the logs don't make
> it to XPanel.  XPanel does clear the last set of logs, so it's at
> least initializing its connection, but the logs themselves don't seem
> to be making it.  And it's all the same code.
>
> Here's my test code:
>
> --------------
> import vegas.logging.Log;
> import vegas.logging.LogEventLevel;
> import vegas.logging.ILogger;
> import vegas.logging.targets.XPanelTarget;
> import vegas.logging.targets.TraceTarget;
>
> class TestMain {
>   private static var LOG:ILogger;
>   private var i:Number = 0;
>
>   public static function main(rootMC:MovieClip):Void {
>     Stage.align = "LT";
>     Stage.scaleMode = "noScale";
>     rootMC.stop();
>
>     var target:XPanelTarget = new XPanelTarget("Test");
>     target.includeLines = true;
>     target.includeLevel = true;
>     target.includeTime = true;
>     target.includeCategory = true;
>     target.filters = ["*"];
>     target.level = LogEventLevel.ALL;
>
>     Log.addTarget(target);
>
>     var traceTarget:TraceTarget = new TraceTarget();
>     traceTarget.includeLines = true;
>     traceTarget.includeLevel = true;
>     traceTarget.includeTime = true;
>     traceTarget.includeCategory = true;
>     traceTarget.filters = ["*"];
>     traceTarget.level = LogEventLevel.ALL;
>
>     Log.addTarget(traceTarget);
>
>     LOG = Log.getLogger("TestMain");
>
>     var t:TestMain = new TestMain(rootMC);
>   }
>
>   function TestMain(rootMC:MovieClip) {
>     initMovie();
>   }
>
>   function initMovie():Void {
>     LOG.info("initMovie");
>
>     setInterval(this, 'log', 2000);
>   }
>
>   private function log():Void {
>     LOG.debug("Debug" + i);
>     LOG.error("Error" + i);
>     LOG.fatal("Fatal" + i);
>     LOG.info("Info" + i);
>     LOG.warn("Warn" + i);
>     LOG.info("Test {0} formatting {1} of {2} doom", true, i, "testy");
>     i++;
>   }
> }
> --------------
>
> The FLA has the following on the first frame:
> --------------
> TestMain.main(this);
> --------------
>
> The trace target always works, but the XPanel target only works when
> built from the Flash IDE.
>
> To build I'm using FlashDevelop, with code injection turned on,
> UseMain turned off, and UseMX turned on.
>
> Any idea why this might be happening?
>
>    -Andy
>
> On 1/25/07, eka <[EMAIL PROTECTED]> wrote:
> > Hello :)
> >
> > With my licence you can do commercial, free application etc.
> >
> > You can use an other licence with my framework and your work keep this
> > licence ;) For me openSource if "open" ... the objective is to
> considerate
> > my work and the time passed to implement the libraries :)
> >
> > No problem to use VEGAS in your applications ;)
> >
> > EKA+ :)
> >
> >
> > 2007/1/25, Andy Herrman <[EMAIL PROTECTED]>:
> > >
> > > I looked at VEGAS actually, but wasn't sure whether I could use it.
> > > I'm not really clear on how the Mozilla license handles "linking".
> > > Specifically, if I don't modify any of the VEGAS code and simply use
> > > its classes and such in my own code, does my code have to fall under
> > > the MPL?  I couldn't really tell from reading the license.  If it will
> > > require my code to be MPL (or any other open source license) I won't
> > > be able to use it, as the company isn't going to allow that.
> > >
> > >    -Andy
> > >
> > > On 1/25/07, eka <[EMAIL PROTECTED]> wrote:
> > > > Hello :)
> > > >
> > > > you can use my openSource framework VEGAS :
> http://vegas.riaforge.org/
> > > >
> > > > the AS2 logging tool in the vegas.logging package is based on the
> > > > mx.loggingAS3 framework :)
> > > >
> > > > You can try the examples in the AS2/trunk/bin/test/vegas/logging
> > > directory
> > > > of the Subversion.
> > > >
> > > > My framework is MTASC and FDT compatible.
> > > >
> > > > EKA+ :)
> > > >
> > > > 2007/1/25, Andy Herrman <[EMAIL PROTECTED]>:
> > > > >
> > > > > I'm looking for a good logging library compatible with Flash 7
> along
> > > > > the lines of log4j.  I found this one, which looks exactly like
> what I
> > > > > want:
> > > > >
> > > > > http://code.audiofarm.de/Logger/
> > > > >
> > > > > but it won't build with MTASC (works fine in the FlashIDE though).
> > > > > Does anyone know if there's a version of it that works with MTASC,
> or
> > > > > other similar libraries that do?  I saw log4f, which is an
> extension
> > > > > of the one I found, but it looks like the extensions were all for
> > > > > Flex, which I don't use.
> > > > >
> > > > > What do you all use for logging?  Up till now I had my own simple
> > > > > logging classes written, but I keep finding myself extending it,
> and
> > > > > I've gotten to the point where it would be better to find a full
> > > > > logging solution instead of continuing to work on mine (originally
> > > > > mine was really simple, but keeps getting more and more
> complicated).
> > > > >
> > > > >    -Andy
> > > > > _______________________________________________
> > > > > Flashcoders@chattyfig.figleaf.com
> > > > > To change your subscription options or search the archive:
> > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > > >
> > > > > Brought to you by Fig Leaf Software
> > > > > Premier Authorized Adobe Consulting and Training
> > > > > http://www.figleaf.com
> > > > > http://training.figleaf.com
> > > > >
> > > > _______________________________________________
> > > > Flashcoders@chattyfig.figleaf.com
> > > > To change your subscription options or search the archive:
> > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > > >
> > > > Brought to you by Fig Leaf Software
> > > > Premier Authorized Adobe Consulting and Training
> > > > http://www.figleaf.com
> > > > http://training.figleaf.com
> > > >
> > > _______________________________________________
> > > Flashcoders@chattyfig.figleaf.com
> > > To change your subscription options or search the archive:
> > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> > >
> > > Brought to you by Fig Leaf Software
> > > Premier Authorized Adobe Consulting and Training
> > > http://www.figleaf.com
> > > http://training.figleaf.com
> > >
> > _______________________________________________
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
> >
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to