Fredy, this message is more appropriate for the user list.  Please post any
followups to that list, not here.

There is a Category/Logger log() method where you pass in the FQCN value.
See the javadoc documentation.  I think you want to use that one in your
framework/wrapper.

-Mark

> -----Original Message-----
> From: Softwareentwicklung Hauschel
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 25, 2002 9:27 PM
> To: 'Log4J Developers List'
> Subject: private static final String FQCN = Category.class.getName();
> 
> 
> Hey All,( Sorry i know im not really in the right list, but almost... )
> in my Project i have to use a Fremework wich supports Logging.
> The Logging is very bad to use, so i want to hide Log4J behind
> the Logging Interface from the Framework.
> 
> So i've debugged log4j to see how you find out the line and the 
> class name !
> Your parsing the StackTrace to org.apache.log4j.Category.FQCN !
> 
> 
>   /**
>      The fully qualified name of the Category class. See also the
>      getFQCN method. */
>   private static final String FQCN = Category.class.getName();
> 
> 
> Unfortunately there's no getFQCN method.
> Thats no Problem, i schould have a setter ;-)
> 
> Is there a way to say log4j wich Class it has to search in the 
> stackTrace ?
> Because i instantiate the Logger/Categorie in my ohn Logger !
> 
> Here a Method wich i have to implement by the framework Logger interface:
> 
>       public void debug(Class cls, String msg)
>       {
>               String clazz = cls.getName();                    
>               if( clazz.startsWith( "de.foo" ) )
>               {
>                       clazz.substring("de.foo".length() );
>                       Logger logger = Logger.getLogger( cls );
>                       
>                       logger.debug( "DBG   .." + clsName + " " + msg );
>               }
>       }
> 
> And log4j alway's give me MyLogger for the calling class ;-(
> 
> Hope you can help me...
> Fredy
> 
> 
> 
> -----Urspr�ngliche Nachricht-----
> Von: Sean Reilly [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 24. Juni 2002 22:31
> An: Log4J Developers List
> Betreff: RE: CVS/SSH on Windows
> 
> 
> Assuming you're using PuTTY for the SSH part then I would recommend
> using either:
> 
> a) the native win32 cvs command line tool, which is available at
> http://www.cvshome.org/downloads.html
> 
> or 
> 
> b) TortoiseCVS: a graphical Explorer extension, which is available at
> http://www.tortoisecvs.org/
> 
> Both of these are useful, but I highly recommend Tortoise.  It is
> incredibly useful, especially when used with
> WinMerge (http://winmerge.sourceforge.net)
> 
> Sean Reilly
> Programmer, Point2 Technologies, Inc.
> (306) 955-1855
> [EMAIL PROTECTED]
> 
> 
> -----Original Message-----
> From: Jon Skeet [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 24, 2002 12:19 PM
> To: Log4J Developers List
> Subject: RE: CVS/SSH on Windows
> 
> 
> > I use the CVS/SSH combination that is delivered with Cygwin 
> > on Windows to access the jakarta-log4j module in read/write mode. 
> > Cygwin is a unix-like 
> > environment that runs under Windows. What do other comitters 
> > use to access the jakarta-log4j cvs module in read/write mode?
> 
> [I'm not a Log4j committer, but I'm an Ant committer, and I'm sure there
> aren't any fundamental differences.]
> 
> I use PuTTY to set up a tunnel, then Eclipse (my IDE of choice) to do
> the CVS client stuff.
> 
> I can't plug PuTTY enough - it's pretty simple (especially if you
> understand SSH to start with - I don't, entirely!) and easily the best
> Win32 telnet client I've seen. It doesn't hurt that the author is a
> mate, too :)
> 
> http://www.chiark.greenend.org.uk/~sgtatham/putty/
> 
> Jon
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: 
> <mailto:[EMAIL PROTECTED]>
> 
> 

Attachment: winmail.dat
Description: application/ms-tnef

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to