I fixed the veracode security flaw CWE-117 by using the ESAPI log library.
The problem is that the log file becomes almost unreadable, because the Java stacktrace is put in one single line.
In order to read the log file, I have to manually replace the character "__" by new lines.
Is it possible to fix the CWE-117 and have a readable log file at the same time?
Thank you.