You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not using Maven, so after adding the core-0.1.7.jar dependency manually, the exception below was thrown. After adding the the slf4j simple and api jars it worked as expected.
Is it absolutely necessary to have the slf4j dependency? I would rather not have a library log anything at all unless I configured it to do so.
I really appreciate the work you have put into this, it would be great if FXForm2 could work straight out of the box for us non Maven users.
Thanks for pointing this out, I'll update the documentation.
Initially, we took the decision to use the sl4j library since it's a logger abstraction layer and you are free to choose the implementation you need; but you are right, it's quiet annoying to have to add manually two dependencies only for logging when not using maven.
I remember that such a discussion took place in the jfxtras-dev mailing list and I think they ended up removing the sl4j dependency and just using the jdk loggers.
Any ideas about another solution?
Is the information that is being logged important enough that the library user needs to be aware of it, but not important enough to throw an exception?
For example, at the moment I haven't defined any CSS or resources for the form I am generating which causes a warning to be logged, even though the form style is OK for my needs at the moment.
Maybe a fail fast approach to errors with really good exception messages would be better, instead of writing warning logs and carrying on. If most of these exceptions occur when the form is being generated then the developer would have to fix them either way.
Using the JDK logging library is preferable if logging must be used. The only other method I can think of is to define an adapter interface which the library can use and users can implement for their own logging library. You would only need to implement #isWarnEnabled and #warn since everything else would be an exception.
I am not using Maven, so after adding the core-0.1.7.jar dependency manually, the exception below was thrown. After adding the the slf4j simple and api jars it worked as expected.
Is it absolutely necessary to have the slf4j dependency? I would rather not have a library log anything at all unless I configured it to do so.
I really appreciate the work you have put into this, it would be great if FXForm2 could work straight out of the box for us non Maven users.
The text was updated successfully, but these errors were encountered: