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


All Replies
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.
Seven Stars

Re: log timestamp missing?

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

 

Regards,

Lorenzo

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.

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 GARNER 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

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Have you checked out Talend’s 2019 Summer release yet?

Find out about Talend's 2019 Summer release

Blog

Talend Summer 2019 – What’s New?

Talend continues to revolutionize how businesses leverage speed and manage scale

Watch 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