-
-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use java.util.logging instead of slf4j #1106
Comments
Components like Atmosphere should not be tightly bound to any concrete On Mon, May 27, 2013 at 6:47 AM, Artur notifications@github.com wrote:
|
Isn't that what org.slf4j.bridge.SLF4JBridgeHandler is for? |
SLF4J has several 'workaround' modules so that if one cannot, for some However these are all workarounds. The simple and most correct use is to It's an anti-pattern to log to a concrete logger and then redirect back to On Mon, May 27, 2013 at 7:11 AM, Artur notifications@github.com wrote:
|
@artur You will need to convince me more about moving back...for me it sound like going back to 2005 with juli :-) I have integrated Atmosphere in many env and never had issue with it. The issue is with the server, not Atmosphere IMO. Can you list the server you are having issue with Vaadin? |
The problem we are having is basically that we want to be able to produce a war file that you can deploy on any of our supported servers. This works great except for the slf4j api problem. Another issue is that the rest of the framework uses jul for logging and the users would end up having to configure both slf4j and jul. If you are not interested in going back to jul then I think we will have to do it anyway for our version. |
@Artur- Understand, but that would break a lot of other framework, applications, etc. Instead of forking, I recommend the design a pluggable logging API where the default would be the same as right now. I can certainly do it under Async-IO.org professionnal services (I did get a ping from your boss, but no response since). |
Regarding running a war in multiple containers, SLF4J is not the problem as Now you mentioned that the rest of the Atmosphere framework uses JUL, that On Thu, May 30, 2013 at 4:21 AM, Artur notifications@github.com wrote:
|
@dhoffer Atmosphere only use one, e.g slf4 . The issue they are seeing is more related to several version of that library, which seems to clash. |
Application containers should not be polluting the contained application's classpath by exposing slf4j to the application's classloader, so IMHO this is an issue of the application container and not an issue with slf4j or atmosphere |
Okay good news, that's what I expected. Then to solve the version problem, On Thu, May 30, 2013 at 6:59 AM, Jeanfrancois Arcand <
|
I just checked the docs, looks like for 1.1.x there is no need for On Thu, May 30, 2013 at 7:43 AM, David Hoffer dhoffer6@gmail.com wrote:
|
Loader delegate="true" is ONLY used if you are using the Native Comet implementation in Tomcat 6/7. Since Native is no longer the default in 1.1, that's why context.xml is no longer needed. |
Got it, that makes sense. That should eliminate the app from forcing to On Thu, May 30, 2013 at 7:59 AM, Jeanfrancois Arcand <
|
The slf4j dependency is causing a lot of headache to us. Some servers bundle their own version of the slf4j API and will fail if you include another version. Some servers do not bundle any version and will fail if you do not include an API jar. Some servers require a certain version and some are fine with anything.
For a normal user with one dedicated deployment platform the slf4j dependency probably does not cause issues. For a framework most dependencies are a problem.
Would you consider a pull request which drops the slf4j dependency? I read you have changed from jul to slf4j in the past although I could not find the reason for it or where Atmosphere itself grealy benefits from slf4j (users can always use slf4j if they like).
The text was updated successfully, but these errors were encountered: