You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by MITTERLECHNER Gerhard via users <us...@hop.apache.org> on 2024/10/07 12:16:51 UTC
How to configure log output
Hi all!
I am trying to change the way the log output of pipelines/workflows is written, and found out that slf4j is used.
(by finding https://issues.apache.org/jira/browse/HOP-3566?focusedCommentId=17462147&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-17462147).
Coming from PDI, I know that it was possible to change the log output by adapting log4j.xml, see, for example:
https://diethardsteiner.github.io/pdi/2017/04/19/PDI-logging.html
What would be the analogous way to change date formats or similar in Apache Hop?
In more detail, I would be interested how it would be possible to append or prepend the timestamp of each log entry
with some information (string) that is available in Apache Hop variable (${someVar} for example).
Note that in my case every single log entry of every pipeline/workflow of the project would need this extension
of the timestamp in the log output.
For example, in case ${someVar} contains the string "XYZ", I would like to change the log output:
from
"2024/10/07 12:56:28 - main - Starting action [write_some_data.hpl]"
to
"2024/10/07 12:56:28 XYZ - main - Starting action [write_some_data.hpl]"
Is something like this possible via configuration?
Mit freundlichen Grüßen
Gerhard Mitterlechner
Senior Development Engineer
Database Management
gmitterlechner@eurofunk.com<ma...@eurofunk.com>
[cid:image002.png@01DB18C3.8CF7EFF0]
eurofunk KAPPACHER GmbH
eurofunk-Straße 1 - 8, 5600 St. Johann im Pongau, Österreich / Austria
Board of Management: Christian Kappacher, Dr. Christian Kappacher
VAT No.: ATU35454003 | Registered in: FN 52582 b, LG Salzburg
Products | Solutions | Service www.eurofunk.com<http://www.eurofunk.com/>
[cid:image003.png@01DB18C3.8CF7EFF0]<https://www.facebook.com/eurofunkKappacher/> [cid:image004.png@01DB18C3.8CF7EFF0] <https://www.linkedin.com/company/5039801/> [cid:image005.png@01DB18C3.8CF7EFF0] <https://www.youtube.com/user/eurofunkkappacher/> [cid:image006.png@01DB18C3.8CF7EFF0] <https://www.xing.com/companies/eurofunkkappachergmbh> [cid:image007.png@01DB18C3.8CF7EFF0] <https://www.instagram.com/eurofunk_kappacher> [cid:image008.png@01DB18C3.8CF7EFF0] <https://www.eurofunk.com/newsletter>