I have a Swing-based application without a console that logs all messages to text files through slf4j with logback underneath.
Whenever a message is logged, I'd also like to add it to a JTextArea
for the end user to see on the screen.
These messages should be formatted the sameway as the log files for consistency.
Does slf4j/logback have API that lets you add a listener for log messages so that I can copy them to JTextArea
?