Talend Connect
Virtual Summit
JOIN US!
And visit the Customer
& Community Lounge.
May 27-28, wherever you are.

[resolved] Log file are not generated when i run talend job from Java Application

Highlighted
One Star

[resolved] Log file are not generated when i run talend job from Java Application

Hi,
I use log4j property file of Project Setting of Talend.
When i run Job within talend, Log Files are generated.
But when i export job as a jar file and run it from java project at that time log files are not generated.
Please Suggest.
Screen shots are as below : 
Talend Job Log4j Configuration:



Java Code in NetBeans :

Talend Job :

Accepted Solutions
Highlighted
One Star

Re: [resolved] Log file are not generated when i run talend job from Java Application

Hi there Mandalas
I figured it out. It appears that the stats and log setting as you set them in the project setting are meant to stay with the project.
To have them more with the job you have to go in the panel below your design panel. There are tabs that you are no doubt already familiar with, like the Component tab the Run tab. To the left there is also a context tab and even further left a job tab. Select the job tab. In the second vertical tab of the job tab you will see a logs & Stats tab. Go there!. There is a little check mark on the first line that say something about using the project settings. Uncheck this and them you can edit the fields which are pretty well the same as those in the project setting plus a few to synchronize the two if need be. Once disconnected this way those setting in the job tab will follow you job when you build it and run it through a batch job.
Hope this help
(I'll try to put a picture but it did not work the first time.)
 

View solution in original post


All Replies
Highlighted
One Star

Re: [resolved] Log file are not generated when i run talend job from Java Application

it's done.
Highlighted
One Star

Re: [resolved] Log file are not generated when i run talend job from Java Application

it's done.

How ?
Highlighted
One Star

Re: [resolved] Log file are not generated when i run talend job from Java Application

I have the same issue! but there is no solution here.
Can we be enlightened?
Highlighted
One Star

Re: [resolved] Log file are not generated when i run talend job from Java Application

Hi there Mandalas
I figured it out. It appears that the stats and log setting as you set them in the project setting are meant to stay with the project.
To have them more with the job you have to go in the panel below your design panel. There are tabs that you are no doubt already familiar with, like the Component tab the Run tab. To the left there is also a context tab and even further left a job tab. Select the job tab. In the second vertical tab of the job tab you will see a logs & Stats tab. Go there!. There is a little check mark on the first line that say something about using the project settings. Uncheck this and them you can edit the fields which are pretty well the same as those in the project setting plus a few to synchronize the two if need be. Once disconnected this way those setting in the job tab will follow you job when you build it and run it through a batch job.
Hope this help
(I'll try to put a picture but it did not work the first time.)
 

View solution in original post

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog