Newbie problems with Simple Log and Eclipse

S

Sal

Hi All,
I would like to use Simple Log (https://simple-log.dev.java.net/nonav/
userGuide/quickStart.html) with Eclipse.

But i have some questions:
"I recommend putting the Simple Log JARs in your application
classpath. If you are using a web or application user, I suggest
putting the JARs in your WEB-INF/lib or APP-INF/lib directory."

- How can i put the Jar in the Eclipse-project classpath?

"Put simplelog.properties and simplelog-config.properties in the root
of your classpath. simplelog-rollover.properties goes here too if
you're using log rolling.
[...]
If you're using an IDE, you'll probably want to put your
configuration
files at the root of your source tree and instruct the IDE to copy
them over to the classes directory on compilation. "

- how can I put the configuration file in the right place?

Thanks

Sal
 
L

lord.zoltar

Sal said:
Hi All,
I would like to use Simple Log (https://simple-log.dev.java.net/nonav/
userGuide/quickStart.html) with Eclipse.

But i have some questions:
"I recommend putting the Simple Log JARs in your application
classpath. If you are using a web or application user, I suggest
putting the JARs in your WEB-INF/lib or APP-INF/lib directory."

- How can i put the Jar in the Eclipse-project classpath?

Try:
Select your project in the Project explorer, and right-click and
select project properties (or just press Alt-Enter) and select the
Java Build Path property. In there you can add and remove other
projects or JARS.
 
S

Sal

Try:
Select your project in the Project explorer, and right-click and
select project properties (or just press Alt-Enter) and select the
Java Build Path property. In there you can add and remove other
projects or JARS.

I've tried to do this and the jars are reachable from the code, the
"import org.grlea.log.SimpleLogger;" work;
but Simple Log seems doesn't works, probably for the configuration
file...

Where and how i've to put it in my project?

Thanks

Sal
 
S

Sal

finally Simple Log and eclipse are working!
i've added the configuration file with adding ad NEW->FILE in my
project. I've exported the project as a jar file application.jar and
i've manually (with WinRar) put your directory org/grlea/log in my
application.jar

And now Simple log works

Thanks for your interesting

Sal
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top