Comments (9)
From [email protected] on April 27, 2011 10:21:47
Here's a patch to replace commons-logging with slf4j.
This change would also require dropping commons-logging-1.1.1.jar and adding slf4j-api-1.6.1.jar and slf4j-log4j12-1.6.1.jar (alternatively you could use the slf4j-simple-1.6.1.jar (which just writes to stdout) and remove log4j from the project).
Sorry, could not figure out how to ignore the whitespace, either with eclipse or tortoise.
Attachment: use-slf4j.patch
from cjwizard.
From [email protected] on April 18, 2013 03:59:29
If you wanna remove external dependencies why not use the [ http://docs.oracle.com/javase/6/docs/technotes/guides/logging/ Java Loggin API]?
from cjwizard.
From [email protected] on October 02, 2013 00:31:54
Here is a patch to remove log4j and replace it with native java logging. Get in mind that I have not translate the log4j formats to JUL but if you think in adding this to the trunk I can make it.
Attachment: native-logging.patch
from cjwizard.
From [email protected] on December 28, 2013 10:23:06
"removing external dependencies" is not the point. the point is making your wizard a well-behaved component that application developers can drop in without causing difficulties. As a component developer you don't get to choose the logging framework, that's up to the application developer. You should use something like slf4j so that your component will use whatever logging framework the application it's added to uses.
from cjwizard.
I see your point.
In my specific project, we need that the resulting jar to be as little as it can so removing dependencies when possible is good. But is in my specific project.
from cjwizard.
For those who also need to remove it, I have created a branch in my fork (https://github.com/PhoneixS/cjwizard/tree/remove-log4j) that don't have this dependencies.
from cjwizard.
I agree on this one. It's better if a library has no dependencies at all...
For all Slf4J-Users out there like me... there's an easy workaround to get rid of this issue. Just add jcl-over-slf4j
explicitly as dependency and remove the commons-logging
and log4j
dependencies.
For more details see http://www.slf4j.org/legacy.html.
from cjwizard.
I just tried switching to slf4j.
Since the test suite isn't that comprehensive, and I don't actually use this project any more it's difficult for me to tell if I actually solved the problem.
Could one of you folks take a look? The work is on this branch:
https://github.com/cjwizard/cjwizard/tree/feature/slf4j
Thanks!
from cjwizard.
https://github.com/cjwizard/cjwizard/tree/feature/slf4j looks good!
+1
from cjwizard.
Related Issues (20)
- Scrolling the in the Wizard Panel? HOT 3
- Stack overflow on WizardPageTest (OpenJDK) HOT 11
- Temporary website is up in all its glory HOT 2
- Feature request, on before next and on before previous actions HOT 2
- README.md: dev.java.net not available any more HOT 4
- Could we have snapshots in JCenter? HOT 13
- New Slack channel HOT 5
- Add support for Java 9 and 10 HOT 4
- Refactor APageFactory, rename it AbstractPageFactory HOT 4
- Maven dependency snippet doesn't work HOT 1
- StackWizardSettings breaks java.util.Map contract HOT 22
- Demo's are broken HOT 2
- Demo logging cleanup and potentially a new demo with even more complex workflows
- Broken link in QuickStart guide HOT 3
- Where to move Maven repo? HOT 4
- Documentation needed HOT 1
- Can't download cjwizard.jar HOT 4
- Travis CI isn't running builds. HOT 4
- Fix alerts documented by LGTM HOT 1
- Write unit tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cjwizard.