google-code-export / sqlite4java

Automatically exported from code.google.com/p/sqlite4java
1 stars 1 forks source link

Usage of slf4j #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I think support of the Simple Logging Facade for Java (SLF4J)[1] would be 
really cool since it helps you to integrate sqlite4java in existing projects. 
If I saw it right there would only a few changes in Internal.java have to be 
made, correct? 

Is there interest in it or any reasons against it?

Thanks for opinions!

[1] http://slf4j.org/

Original issue reported on code.google.com by ErikEr...@gmail.com on 20 Jun 2012 at 7:45

GoogleCodeExporter commented 9 years ago
Hi Erik, 

the only reason against it is that this will introduce a dependency on an 
additional library that is not quite required. 

Isn't there a bridge that would add a java.util.logging.Handler and route the 
logging messages to SLF4J? If there's none, one could write it easily and 
integrate sqlite4java with slf4j-enabled projects.

Let me know if that makes sense to you.
Igor

Original comment by ser...@gmail.com on 20 Jun 2012 at 8:26

GoogleCodeExporter commented 9 years ago
Hi Igor,
reducing dependency is a good point of course.

By time I'll take a closer look on it and see if what's the best way to 
integrate SLF4J with the least needed overhead. I'll inform you about any 
results.

Thanks so far for response.
Erik

Original comment by ErikEr...@gmail.com on 21 Jun 2012 at 8:26

GoogleCodeExporter commented 9 years ago
This article may help: 
http://stackoverflow.com/questions/6020545/java-util-logging-logger-to-logback-u
sing-slf4j

Closing this issue for now - feel free to post if there's anything to be done 
within sqlite4java project to help.

Original comment by ser...@gmail.com on 21 Jun 2012 at 10:06