0

I am trying to find a centralized way to display errors to the user while logging them. Want to display the whole error message as it is written to the log without any customization. We are using log4j to log the errors and want to do minimal changes to the code.

Anonymous
  • 35
  • 5

1 Answers1

0

Make a custom Appender as can be seen here. Add the Appender to your Logger and get notified about logging events and do with them whatever you want to.

Community
  • 1
  • 1
Flying Swissman
  • 818
  • 2
  • 14
  • 39