In an Eclipse project, how do I get the simplelogger.properties file automatically included when using SLF4J Simple Logging?

I downloaded and unzip SLF4J 1.7.12 on my PC in a folder D:/SOURCE/ProgramsInstalled/slf4j-1.7.12

.

I want to work with Simple Logging for SLF4J, so I'm concentrating on these two files:

  • slf4j-api-1.7.12.jar

  • slf4j-simple-1.7.12.jar

In eclipse, I want the above 2 files to be treated as 1 library, so I can include this library in any project if I need it.

So in Eclipse I created a new custom library named SLF4J_1.7.12_SIMPLE

and included the above two files in it.

Now in any project where I want to use Simple Logging for SLF4J, I can just include this custom library SLF4J_1.7.12_SIMPLE

.

But in any such project, I also want to include the simplelogger.properties

. Is it possible to automatically include this file in a project if that project includes a custom library SLF4J_1.7.12_SIMPLE

? If so, how?

Let's assume the file simplelogger.properties

is in a folder D:/SOURCE/ProgramsInstalled/slf4j-1.7.12

.

thank

+3
java eclipse slf4j


source to share


No one has answered this question yet

Check out similar questions:

1011
How do I add local jar files to a Maven project?
676
Is it possible to add jars to the maven 2 build classpath without installing them?
646
Working with "Xerces hell" in Java / Maven?
250
How to connect javadoc or sources to jars in libs folder?
231
Why not use java.util.logging?
162
How do I create a project from an existing source in Eclipse and then find it?
159
Get the source jar files attached to Eclipse for Maven dependencies
158
Build project in JAR automatically in Eclipse
13
How does slf4j work? No log creation is generated
2
Where to put simplelogger.properties file for slf4j simple Eclipse login



All Articles
Loading...
X
Show
Funny
Dev
Pics