Home » Eclipse Projects » Eclipse Platform » Eclipse and Log4J
Eclipse and Log4J [message #41850] |
Wed, 21 May 2003 09:31  |
Eclipse User |
|
|
|
Originally posted by: maika.koennen.web.de
Hi all!
I'm not sure, if I'm right in this newsgroup.
But I have a big problem with Eclipse 2.1 and the Java-Package Log4J.
I have a application, which logs with Log4J informations,
debug-informations and errors. Before I install Eclipse 2.1 (using Eclipse
2.0), the logging entries are shown at the console and were write in a
logging file. After I had installed Eclipse 2.1, I must create a new
project under Eclipse 2.1 with my sources. And now the logging
informations and debug informations were not shown at the console and were
not written in the logging file, too. I only see the errors on the
console, but no info or debug. The log.properties is the same as under
Eclipse 2.0 and the sourcecode too. One of my colleague uses also Eclipse
2.1 and Log4J and it works. What must I do, that it also works again in my
project?
Many thanks for your help!
Regards,
Maika
|
|
|
Re: Eclipse and Log4J [message #43098 is a reply to message #41850] |
Wed, 21 May 2003 14:12   |
Eclipse User |
|
|
|
Originally posted by: stelian.iancu.gmx.net
Maika Können wrote:
> Hi all!
>
> I'm not sure, if I'm right in this newsgroup.
> But I have a big problem with Eclipse 2.1 and the Java-Package Log4J.
> I have a application, which logs with Log4J informations,
> debug-informations and errors. Before I install Eclipse 2.1 (using Eclipse
> 2.0), the logging entries are shown at the console and were write in a
> logging file. After I had installed Eclipse 2.1, I must create a new
> project under Eclipse 2.1 with my sources. And now the logging
> informations and debug informations were not shown at the console and were
> not written in the logging file, too. I only see the errors on the
> console, but no info or debug. The log.properties is the same as under
> Eclipse 2.0 and the sourcecode too. One of my colleague uses also Eclipse
> 2.1 and Log4J and it works. What must I do, that it also works again in my
> project?
>
> Many thanks for your help!
>
> Regards,
> Maika
.... and the errors you're getting are ?
And if you start eclipse with -data argument you don't have to re-create the
projects every time you upgrade Eclipse. The idea is to keep the workspace
directory outside Eclipse (for example, c:\workspace). Then you can make a
shortcut for Eclipse and start it with the -data argument
(c:\eclipse\eclipse.exe -data c:\workspace). In this manner, you can
upgrade Eclipse without touching the workspace directory.
--
Stelian Iancu
Linux registered user 287835
Be different. Think.
|
|
|
Re: Eclipse and Log4J [message #43309 is a reply to message #43098] |
Thu, 22 May 2003 04:07   |
Eclipse User |
|
|
|
Originally posted by: maika.koennen.web.de
Stelian Iancu wrote:
> Maika Können wrote:
> > Hi all!
> >
> > I'm not sure, if I'm right in this newsgroup.
> > But I have a big problem with Eclipse 2.1 and the Java-Package Log4J.
> > I have a application, which logs with Log4J informations,
> > debug-informations and errors. Before I install Eclipse 2.1 (using Eclipse
> > 2.0), the logging entries are shown at the console and were write in a
> > logging file. After I had installed Eclipse 2.1, I must create a new
> > project under Eclipse 2.1 with my sources. And now the logging
> > informations and debug informations were not shown at the console and were
> > not written in the logging file, too. I only see the errors on the
> > console, but no info or debug. The log.properties is the same as under
> > Eclipse 2.0 and the sourcecode too. One of my colleague uses also Eclipse
> > 2.1 and Log4J and it works. What must I do, that it also works again in my
> > project?
> >
> > Many thanks for your help!
> >
> > Regards,
> > Maika
> .... and the errors you're getting are ?
> And if you start eclipse with -data argument you don't have to re-create the
> projects every time you upgrade Eclipse. The idea is to keep the workspace
> directory outside Eclipse (for example, c:\workspace). Then you can make a
> shortcut for Eclipse and start it with the -data argument
> (c:\eclipse\eclipse.exe -data c:\workspace). In this manner, you can
> upgrade Eclipse without touching the workspace directory.
> --
> Stelian Iancu
> Linux registered user 287835
> Be different. Think.
Hi Stelian,
thanks for the tip with -data.
I get only the errors, which I write with Log4J from my application.
Before 2.1 I see also the informations and debug lines, which I write with
Log4J from my application, on my console. But now not anymore.
Thanks for your help.
Maika
|
|
|
Re: Eclipse and Log4J [message #43769 is a reply to message #41850] |
Thu, 22 May 2003 09:55   |
Eclipse User |
|
|
|
Originally posted by: oshteynbuk.nyc.rr.com
I had a similar problem but it was not related to eclipse. Log4j was
using different properties file. In my case this properties file was in
axis.jar. check for classpath if it different from the old one. I have
also modified JWhich utility that will find a properties file that is used.
oleg
Maika Können wrote:
> Hi all!
>
> I'm not sure, if I'm right in this newsgroup.
> But I have a big problem with Eclipse 2.1 and the Java-Package Log4J.
> I have a application, which logs with Log4J informations,
> debug-informations and errors. Before I install Eclipse 2.1 (using Eclipse
> 2.0), the logging entries are shown at the console and were write in a
> logging file. After I had installed Eclipse 2.1, I must create a new
> project under Eclipse 2.1 with my sources. And now the logging
> informations and debug informations were not shown at the console and were
> not written in the logging file, too. I only see the errors on the
> console, but no info or debug. The log.properties is the same as under
> Eclipse 2.0 and the sourcecode too. One of my colleague uses also Eclipse
> 2.1 and Log4J and it works. What must I do, that it also works again in my
> project?
>
> Many thanks for your help!
>
> Regards,
> Maika
>
|
|
|
Re: Eclipse and Log4J [message #44985 is a reply to message #43769] |
Fri, 23 May 2003 04:00   |
Eclipse User |
|
|
|
Originally posted by: maika.koennen.web.de
oleg shteynbuk wrote:
> I had a similar problem but it was not related to eclipse. Log4j was
> using different properties file. In my case this properties file was in
> axis.jar. check for classpath if it different from the old one. I have
> also modified JWhich utility that will find a properties file that is used.
> oleg
> Maika Können wrote:
> > Hi all!
> >
> > I'm not sure, if I'm right in this newsgroup.
> > But I have a big problem with Eclipse 2.1 and the Java-Package Log4J.
> > I have a application, which logs with Log4J informations,
> > debug-informations and errors. Before I install Eclipse 2.1 (using Eclipse
> > 2.0), the logging entries are shown at the console and were write in a
> > logging file. After I had installed Eclipse 2.1, I must create a new
> > project under Eclipse 2.1 with my sources. And now the logging
> > informations and debug informations were not shown at the console and were
> > not written in the logging file, too. I only see the errors on the
> > console, but no info or debug. The log.properties is the same as under
> > Eclipse 2.0 and the sourcecode too. One of my colleague uses also Eclipse
> > 2.1 and Log4J and it works. What must I do, that it also works again in my
> > project?
> >
> > Many thanks for your help!
> >
> > Regards,
> > Maika
> >
Hi Oleg!
What should I check, if it different from the old one?
The properties file? This is the same as before. Also the log4j-1.2.3.jar
is the same.
Thanks for your help,
Maika
|
|
|
Re: Eclipse and Log4J [message #46860 is a reply to message #44985] |
Fri, 23 May 2003 15:34  |
Eclipse User |
|
|
|
Originally posted by: oshteynbuk.nyc.rr.com
>
> Hi Oleg!
>
> What should I check, if it different from the old one?
> The properties file? This is the same as before. Also the log4j-1.2.3.jar
> is the same.
>
> Thanks for your help,
>
> Maika
>
in my case it was a class path. i have used log4j.properties and it is a
default name (in latest version log4j.xml too) axis.jar has
log4j.properties file and axis.jar was ahead of dir with my
log4j.properties file so log4j was using axis properties file instead of
mine. if it is your case too then you can do two things fix classpath or
rename log4j.properties file to smth like foo.properties and add
couple of lines of java code to read it, log4j has pretty good docs. i
have also modified Mike Clark's JWhich utility that will find the
property file that is acctually used. original JWhich finds class file
used, i have added two options -p for properties files and -f for any
resourse. if smb is interested i can post my modifications, his
copyright notice permits it, i believe.
oleg
|
|
|
Goto Forum:
Current Time: Tue Jul 22 14:02:41 EDT 2025
Powered by FUDForum. Page generated in 0.29297 seconds
|