log timestamp missing?

Highlighted
Seven Stars

log timestamp missing?

Hi,

 

why have you not setup timestamp showing aside "INFO" (or DEBUG...) in the log rows?

 

[INFO ]: part_kpi.part_sla_load_mbg_logs_0_2.PART_SLA_Load_MBG_Logs - tSystem_2 - Command to execute: '[Ljava.lang.String;@2641e737'.
[INFO ]: part_kpi.part_sla_load_mbg_logs_0_2.PART_SLA_Load_MBG_Logs - tSystem_2 - The command has been executed successfully.
[INFO ]: part_kpi.part_sla_load_mbg_logs_0_2.PART_SLA_Load_MBG_Logs - tPostgresqlRow_3 - Execute the query: 'delete from sla_mbg_logs_raw where date_trunc('day',event_ts) = '2017-11-13'' has finished.
[INFO ]: part_kpi.part_sla_load_mbg_logs_0_2.PART_SLA_Load_MBG_Logs - tSystem_2 - Setting the parameters.
[INFO ]: part_kpi.part_sla_load_mbg_logs_0_2.PART_SLA_Load_MBG_Logs - tSystem_2 - Executing the command.
[INFO ]: part_kpi.part_sla_load_mbg_logs_0_2.PART_SLA_Load_MBG_Logs - tSystem_2 - Command to execute: '[Ljava.lang.String;@2fd66ad3'.
[INFO ]: part_kpi.part_sla_load_mbg_logs_0_2.PART_SLA_Load_MBG_Logs - tSystem_2 - The command has been executed successfully.

 

something like 

[INFO 2017-10-10 11:00:25.345]: part_kpi.part_sla_load_mbg_logs_0_2.PART_SLA_Load_MBG_Logs - tSystem_2 - Executing the command.

would be highly highly appreciated.

 

Regards,

Lorenzo


Accepted Solutions
Highlighted
Six Stars

Re: log timestamp missing?

In the log4j settings (file -> project properties -> log4j) try to use this for the ConversionPattern:

"%d{yyyy-MM-dd HH:mm:ss}  [%-5p] (%t): %c - %m%n"

 

This produces messages like this:

2018-03-01 14:19:45  [INFO ] (main): project.postgres_backup_main_0_1.Postgres_Backup_Main - TalendJob: 'Postgres_Backup_Main' - Start.

View solution in original post


All Replies
Highlighted
Moderator

Re: log timestamp missing?

Hello,

You can check out "Exec time" option in Advanced settings  of Run view which shows the time of running your current job.

1.png

Is it what you are looking for? Or the timestamp for the Events In Monitoring/Logging of the TAC?

Best regards

Sabrina

--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Highlighted
Seven Stars

Re: log timestamp missing?

I'm looking for a timestamp in the TAC log rows.

 

Regards,

Lorenzo

Highlighted
Six Stars

Re: log timestamp missing?

In the log4j settings (file -> project properties -> log4j) try to use this for the ConversionPattern:

"%d{yyyy-MM-dd HH:mm:ss}  [%-5p] (%t): %c - %m%n"

 

This produces messages like this:

2018-03-01 14:19:45  [INFO ] (main): project.postgres_backup_main_0_1.Postgres_Backup_Main - TalendJob: 'Postgres_Backup_Main' - Start.

View solution in original post

Highlighted
Six Stars

Re: log timestamp missing?

hi @Dezzsoke,

Thanks for your answer, it is working fine, but i want that timestamp in UTC format,

any help??

Thanks,

Abhi529  

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

6 Ways to Start Utilizing Machine Learning with Amazon We Services and Talend

Look at6 ways to start utilizing Machine Learning with Amazon We Services and Talend

Blog

Downloads and Trials

Test drive Talend's enterprise products.

Downloads