Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tLogCatcher - tFileOutputDelimited: How to writes errors and activity messages to log file created at job level

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.

Labels (2)
1 Solution

Accepted Solutions
TRF
Champion II
Champion II

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).

 

View solution in original post

3 Replies
TRF
Champion II
Champion II

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).

 

Anonymous
Not applicable
Author

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

TRF
Champion II
Champion II

Yes