I don't want every time i use log to have to type the class name or look it up 
it clutters the code and is tedious, right now I wrapped alcon so it looks like 
log4j, I did :

class com.bluetube.util.loggertest.MyClass
{
private static logger:Logger;

public function MyClass()
{
  logger = Logger.getLogger(ClassUtilities.getLongClassName(MyClass));
  logger.debug("constructed");
}

public function doSomething():Void
{
  logger.fatal("You called do something");
}


my logger output is something like :

8/31/05 12:41:006 - com.util.bluetube.loggertest.MyClass DEBUG constructed
8/31/05 12:41:007 - com.util.bluetube.loggertest.MyClass FATAL You called do 
something

Grant.





}


----- Original Message -----
From: Nico Zimmermann [EMAIL PROTECTED]
To: Open Source Flash Mailing List [email protected]
Sent: 8/31/05 10:45 AM
Subject: AW: AW: Re: [osflash] Which Logger do you use?

> Why not make this...
> 1) Class name as part of the log line
> 3) Source code line number (if use with MTASC)
> 
> part of the log string and handle this...
> 2) Severity level
> with coloring?
> 
> Nico
> 
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL 
> PROTECTED]
> Gesendet: Mittwoch, 31. August 2005 16:36
> An: [email protected]
> Betreff: Re: AW: Re: [osflash] Which Logger do you use?
> 
> Whic of these loggers allow :
> 
> 1) Class name as part of the log line
> 2) Severity level
> 3) Source code line number (if use with MTASC)
> 
> Right now I'm using the alcon logger
> 
> http://hiddenresource.corewatch.net/index.php?itemid=3
> 
> I've butchered it somewhat to include the class name and line number for each 
> line log but its more butchered for my needs than what could be a real change 
> to give back to the author.
> 
> Grant
> 
> 
> ----- Original Message -----
> From: Nico Zimmermann [EMAIL PROTECTED]
> To: Open Source Flash Mailing List [email protected]
> Sent: 8/31/05 10:26 AM
> Subject: AW: Re: [osflash] Which Logger do you use?
> 
> > I use SOS...
> > - it's fast
> > - you have coloring and folding
> > - strong search 
> > - you can configure/control the UI of SOS from within your flash app.
> > - works also with PHP and FlashCom
> > 
> > Nico.
> > 
> > Powerflasher GmbH
> > Tel: +49(0)241 91880-230
> > 
> > -----Ursprüngliche Nachricht-----
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL 
> > PROTECTED]
> > Gesendet: Mittwoch, 31. August 2005 15:58
> > An: Open Source Flash Mailing List
> > Betreff: Re: Re: [osflash] Which Logger do you use?
> > 
> > I got a chance to try FlashInspector last night, and I noticed it didn't 
> > seem to work with Flash Player 8 but FP7.
> > 
> > I have installed phpEclipse and had it shown in Eclipse.  FlashInspector 
> > only showed half of its window in the browser (same behavior is seen in 
> > Firefox which is running the latest FP8 beta)
> > 
> > No trace seems to be captured in that panel, but I could get it running 
> > normally as standalone or in IE (with FP7).
> > 
> > I like it and I wrote a wrapper for the logger so it can be with "MTASC 
> > -trace", but at the same time, a simple wrapper may not allow easy 
> > integrate of levels, not to mention all the class name, line # lost in the 
> > translation.  (Yeah, I am getting greedy here.  :) )
> > 
> > - Tangent
> > 
> > > 
> > > From: Johan Lopes 
> > > Date: 2005/08/31 Wed AM 09:41:03 EDT
> > > To: Open Source Flash Mailing List 
> > > Subject: Re: [osflash] Which Logger do you use?
> > > 
> > > I too am a big fan of Paul Spitzer's FlashLog. It's just uncluttred
> > > and very neat!
> > > 
> > > Lately though, Richard Leggett got me into using the FlashInspector on
> > > a project we're working on and I agree with Zarate about the annoyance
> > > of it not having an horizontal scrollbar.
> > > 
> > > John, I'm looking forward to Xray's upcoming ability to hook in
> > > external loggers/tools!!!
> > > 
> > > /Johan
> > 
> > 
> > 
> > _______________________________________________
> > 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
> 
> 
> _______________________________________________
> 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