on 2018 Aug 09 10:32 AM
Hi Experts,
We have a cron job with a few cases where an exception can occur. We are logging the exception using LOG4j
Logger is defined as:
private static final Logger LOG = Logger.getLogger(MyCronJob.class);
error logging is as follows:
LOG.error("Error occurred while processing raw csv : ", ioException);
Now, whenever an exception occurs and I check the logs, I can only see:
"Error occurred while processing raw csv :". No StackTrace included here.
As a workaround, If we change the log statement as below, it works: LOG.error("Error occurred while processing raw csv : " + ioException);
Please suggest the solution.
Thanks,
Vikram
Request clarification before answering.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.