Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
Could you help to write the activity messages and errors to write to log file created for each job.
The job will be executed from unix as batch jar and wanted to trace the flow of the job.
At project level, the following parameters are set:
1. Use statistics
2. Use logs
3. Use volumetrics
4. Catch runtime errors
5. Catch user errors
6. Catch user warnings
7. Catch components statistics
In the job, I have added 2 components - tLogCatcher and tStatCatcher writing to 2 seperate files respectively:
"C:/Talend/logs/" +jobName + "_logs" +".csv"
"C:/Talend/logs/" +jobName + "_stats" + ".csv"
These are not logging the activity messages or errors.
The tStatsCatcher is creating 1 row for each run.
But there is not logging created.
Could you kindly help.
Thank you.
For tLogCatcher you have to decide which event you want to catch: Java exceptions, tWarn, tDie.
Once the tLogCatcher is configured (for exemple to catch all the kinds of events), it's your responsability to fire the corresponding events using the tWarn or tDie component (Java exceptions on their side are generally fired by the JVM itself when an exception occurs).
For tLogCatcher you have to decide which event you want to catch: Java exceptions, tWarn, tDie.
Once the tLogCatcher is configured (for exemple to catch all the kinds of events), it's your responsability to fire the corresponding events using the tWarn or tDie component (Java exceptions on their side are generally fired by the JVM itself when an exception occurs).
Hi TRF,
Thank you for the reply.
Since we would be running as batch(jar) from .sh I was looking for this.
So, if I want to know the progress while job is executing, do I have to use tWarn component setting priority as Info?
Thanks
Yes