Hi,
I am using Log4j for logging, and we are required to encrypt the log messages.
In order to encrypt the message, I need the entire message as a text
string. For example,
message: "This is a message"
Log file content (based on my appender configuration): [2011-03-31 09:33:42,156]DEBUG - com.test.me.operation1(MyClass.java:107) - This is a message
Is there a way I can get access to the entire message in my
java code (i.e. what the logger class is writing)? If I have that, I can encrypt the message.
Thanks,