log4j - capturing logged events
I've seen other log4j questions in this forum so I hope it's ok for me to bring this topic here.
We have a number of classes trapping exceptions and logging them via log4j. This process is working very well. Now, we need to display a JTable with some of these exceptions: pretty displayed and segregated by exception fields as columns for non-technical users. We have a root (custom) exception class that all thrown exceptions inherit from. It has a number of internal data members. For example: tradeID, location, etc... For each log4j event our JTable needs to show a line with these data members as cols.
I'd think that registering an log4j appender or some other form of listener is the right approach. Any advise how to proceed?