You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "alexmller (via GitHub)" <gi...@apache.org> on 2025/10/28 10:41:25 UTC
[D] Making Hop Gui Logging output easier to read (hop)
GitHub user alexmller created a discussion: Making Hop Gui Logging output easier to read
I would like to propose another format for the Logging output in Hop Gui.
The current format gives me a hard time spotting errors because action/transform names are written before the ERROR part and have different name lengths:
<img width="341" height="167" alt="image" src="https://github.com/user-attachments/assets/37f87a29-2d81-4094-8e5c-6b0a5e95a7ee" />
<br />
There is a nice filter-feature that shows only the error lines:
<img width="601" height="143" alt="Logging output with ERROR" src="https://github.com/user-attachments/assets/6634359a-8473-4dab-bd97-b146eb01c0af" />
Unfortunately, investigating a cause regularly requires more context, so I still have to search the Logging output. It would help a lot when information was lined up by:
- a fixed log-level written before the action/transform name
- a white-space padding on the log-level
- no dash between log level and transform name
```
2025/10/28 11:00:00 [BASIC] CSV file input.0 ...
2025/10/28 11:00:00 [WARNING] CSV file input.0 ...
2025/10/28 11:00:00 [ERROR] CSV file input.0 ...
```
An output like this:
```
2025/10/28 10:58:41 - Get rows from result.0 - Finished processing (I=0, O=0, R=146, W=292, U=0, E=0)
2025/10/28 11:00:00 - Get rows form result.0 - WARNING: Something terrible happened (I made this up)
2025/10/28 10:58:41 - CSV file input.0 - ERROR: Unexpected error
2025/10/28 10:58:41 - CSV file input.0 - ERROR: org.apache.hop.core.exception.HopException:
2025/10/28 10:58:41 - CSV file input.0 - The filename field 'filename' could not be found.
2025/10/28 10:58:41 - CSV file input.0 -
2025/10/28 10:58:41 - CSV file input.0 - at org.apache.hop.pipeline.transforms.csvinput.CsvInput.getFilenamesFromPreviousTransforms(CsvInput.java:276)
2025/10/28 10:58:41 - CSV file input.0 - at org.apache.hop.pipeline.transforms.csvinput.CsvInput.processRow(CsvInput.java:81)
2025/10/28 10:58:41 - CSV file input.0 - at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
2025/10/28 10:58:41 - CSV file input.0 - at java.base/java.lang.Thread.run(Thread.java:840)
```
would then become this:
```
2025/10/28 10:58:41 [BASIC] Get rows from result.0 - Finished processing (I=0, O=0, R=146, W=292, U=0, E=0)
2025/10/28 11:00:00 [WARNING] Get rows form result.0 - Something terrible happened (I made this up)
2025/10/28 10:58:41 [ERROR] CSV file input.0 - Unexpected error
2025/10/28 10:58:41 [ERROR] CSV file input.0 - org.apache.hop.core.exception.HopException:
2025/10/28 10:58:41 [ERROR] CSV file input.0 - The filename field 'filename' could not be found.
2025/10/28 10:58:41 [ERROR] CSV file input.0 -
2025/10/28 10:58:41 [ERROR] CSV file input.0 - at org.apache.hop.pipeline.transforms.csvinput.CsvInput.getFilenamesFromPreviousTransforms(CsvInput.java:276)
2025/10/28 10:58:41 [ERROR] CSV file input.0 - at org.apache.hop.pipeline.transforms.csvinput.CsvInput.processRow(CsvInput.java:81)
2025/10/28 10:58:41 [ERROR] CSV file input.0 - at org.apache.hop.pipeline.transform.RunThread.run(RunThread.java:54)
2025/10/28 10:58:41 [ERROR] CSV file input.0 - at java.base/java.lang.Thread.run(Thread.java:840)
```
GitHub link: https://github.com/apache/hop/discussions/5923
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org
Re: [D] Making Hop Gui Logging output easier to read (hop)
Posted by "alexmller (via GitHub)" <gi...@apache.org>.
GitHub user alexmller added a comment to the discussion: Making Hop Gui Logging output easier to read
Same thought here. I haven't looked into it yet, but that would be the way to go.
GitHub link: https://github.com/apache/hop/discussions/5923#discussioncomment-14803404
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org
Re: [D] Making Hop Gui Logging output easier to read (hop)
Posted by "alexmller (via GitHub)" <gi...@apache.org>.
GitHub user alexmller added a comment to the discussion: Making Hop Gui Logging output easier to read
Looking into it now, I can provide a separate layout class to the LogBrowser in HopGui. Issue and PR to come...
GitHub link: https://github.com/apache/hop/discussions/5923#discussioncomment-14804166
----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org