You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Al Niessner <Al...@jpl.nasa.gov> on 2007/01/13 03:13:18 UTC

Re: No output from logging (NEVERMIND)

I found the problem. Turns out that the Unimod stuff I had was
converting from log4j to java.util.logging. I rewrote (short on time)
the Jdk14Logger implementation to use log4j instead of java.util.logging
and it all works just fine now. Sorry about the mistake on my part and
thank you very much for help and cooperation.

On Thu, 2007-01-11 at 16:44 -0800, Al Niessner wrote:
> So, I have an application that I run with a command similar to:
> 
> java -cp
> concurrency.jar:activation.jar:mail.jar:log4j-1.2.12.jar:unimod.jar:myStuff.jar my.package.Begin
> 
> and all works well. I see tons of stuff from log4j as my program cycles
> through its states.
> 
> Then I use GCJ to compile concurrency.jar, activation.jar, mail.jar,
> log4j-1.2.12.jar, and unimod.jar into shared libraries. I compile
> myStuff.jar into the executable linking in the shared libraries. Now,
> when I run the program I get all my output that is not from log4j. So, I
> thought I might be missing some resources from log4j -- they are handled
> special in GCJ. So, I unzipped the log4j jar file and looked for
> non-java files. I found 4; 3 gifs that I ignored and
> org/apache/log4j/lf5/config/defaultconfig.properties and
> org/apache/log4j/xml/log4j.dtd. I compiled them into resources with GCJ
> and linked them in. Still no output. I then added the gifs just for
> completeness and still no output.
> 
> So, what resource am I missing that I get output with Java but not GCJ?
> All classes must be there since it works with the JVM and there are no
> undefined references at link time (the hardest part of GCJ). I use a URL
> reference to a file for my configuration, but I do not think that is it.
> If I remove my configuration, I get an error which is some output at
> least.
> 
> Thanks in advance for any and all help.
> 
> 
-- 
Al Niessner
818.354.0859

All opinions stated above are mine and do not necessarily reflect those
of JPL or NASA.

--------
|  dS  | >= 0
--------



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: No output from logging (NEVERMIND)

Posted by ra...@dotech.com.
Sent via BlackBerry from Cingular Wireless  

-----Original Message-----
From: Al Niessner <Al...@jpl.nasa.gov>
Date: Fri, 12 Jan 2007 18:13:18 
To:Log4J Users List <lo...@logging.apache.org>
Subject: Re: No output from logging (NEVERMIND)


I found the problem. Turns out that the Unimod stuff I had was
converting from log4j to java.util.logging. I rewrote (short on time)
the Jdk14Logger implementation to use log4j instead of java.util.logging
and it all works just fine now. Sorry about the mistake on my part and
thank you very much for help and cooperation.

On Thu, 2007-01-11 at 16:44 -0800, Al Niessner wrote:
> So, I have an application that I run with a command similar to:
> 
> java -cp
> concurrency.jar:activation.jar:mail.jar:log4j-1.2.12.jar:unimod.jar:myStuff.jar my.package.Begin
> 
> and all works well. I see tons of stuff from log4j as my program cycles
> through its states.
> 
> Then I use GCJ to compile concurrency.jar, activation.jar, mail.jar,
> log4j-1.2.12.jar, and unimod.jar into shared libraries. I compile
> myStuff.jar into the executable linking in the shared libraries. Now,
> when I run the program I get all my output that is not from log4j. So, I
> thought I might be missing some resources from log4j -- they are handled
> special in GCJ. So, I unzipped the log4j jar file and looked for
> non-java files. I found 4; 3 gifs that I ignored and
> org/apache/log4j/lf5/config/defaultconfig.properties and
> org/apache/log4j/xml/log4j.dtd. I compiled them into resources with GCJ
> and linked them in. Still no output. I then added the gifs just for
> completeness and still no output.
> 
> So, what resource am I missing that I get output with Java but not GCJ?
> All classes must be there since it works with the JVM and there are no
> undefined references at link time (the hardest part of GCJ). I use a URL
> reference to a file for my configuration, but I do not think that is it.
> If I remove my configuration, I get an error which is some output at
> least.
> 
> Thanks in advance for any and all help.
> 
> 
-- 
Al Niessner
818.354.0859

All opinions stated above are mine and do not necessarily reflect those
of JPL or NASA.

--------
|  dS  | >= 0
--------



---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org