How do I get what is being written by log4j in central class which monitors all log4j logs in the application?
Thanks
Edit: I wish I would not have to read it from the log file since it would use more resources
How do I get what is being written by log4j in central class which monitors all log4j logs in the application?
Thanks
Edit: I wish I would not have to read it from the log file since it would use more resources
You can implement your own Appender and copy all logs on it using the normal config:
maybe your requirement is same with me. I just write a relevant class to realize it.
By providing log4j configuration that outputs log messages into a file or any other location.