java - JTextArea as listener for log4j Logger -
How can I set a JTextArea to get anything (I lack the "MyLoggerListener" like creating an interface and Implementation is in my JTextArea)
Edit:
I have fixed this problem by creating a textAreutputstream, by creating a print marketer, and adding a writer appendix with the printer in the constructor. Used to be.
I think @ Oscaris's approach is a good idea.
However, I think you should think it is difficult that you should try to do this. The problem is that the log message in the Java GUI is likely to be painting CPU intensive. It is likely to slow your app launch, and as a result there is a possibility of annoying your application.
(It is not that your application should be sensitive at the time. But if you have time-bound bugs, then changing logging level etc. is not useful, so the application causes the app to behave differently. )
My feeling is that embedding a fancy log viewer in your application is more likely to be a problem because its price is ...
Comments
Post a Comment