You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "jimmybow (via GitHub)" <gi...@apache.org> on 2025/04/17 05:51:07 UTC
[I] [Feature Request]: Slf4jLoggingEventListener support show general log (hop)
jimmybow opened a new issue, #5198:
URL: https://github.com/apache/hop/issues/5198
### What would you like to happen?
please let Slf4jLoggingEventListener support show general log
for example,
```
public void eventAdded(HopLoggingEvent event) {
Object messageObject = event.getMessage();
Preconditions.checkNotNull(messageObject, "Expected log message to be defined.");
if (messageObject instanceof LogMessage message) {
ILoggingObject loggingObject = (ILoggingObject)this.logObjProvider.apply(message.getLogChannelId());
if (loggingObject == null) {
Logger var10001 = this.diLogger;
LogLevel var10002 = message.getLevel();
String var10003 = message.getSubject();
this.logToLogger(var10001, var10002, var10003 + " " + message.getMessage());
} else if (loggingObject.getObjectType() == LoggingObjectType.WORKFLOW || loggingObject.getObjectType() == LoggingObjectType.ACTION) {
this.logToLogger(this.jobLogger, message.getLevel(), loggingObject, message);
} else if (loggingObject.getObjectType() == LoggingObjectType.PIPELINE || loggingObject.getObjectType() == LoggingObjectType.TRANSFORM || loggingObject.getObjectType() == LoggingObjectType.DATABASE) {
this.logToLogger(this.pipelineLogger, message.getLevel(), loggingObject, message);
} else {
this.logToLogger(this.diLogger, message.getLevel(), message.getMessage());
}
}
}
```
```
2025-04-17-13:19:21.295 [XNIO-1 task-2] INFO org.apache.hop {} - Installing timer to purge stale objects after 1 minutes.
2025-04-17-13:36:20.350 [main] INFO org.apache.hop {} - Projects enabled
2025-04-17-13:36:20.382 [main] INFO org.apache.hop {} - Enabling project : 'samples'
2025-04-17-13:36:45.247 [main] INFO org.apache.hop {} - Pipeline opened.
2025-04-17-13:36:45.248 [main] INFO org.apache.hop {} - Launching pipeline [get-system-info-basic]...
2025-04-17-13:36:45.248 [main] INFO org.apache.hop {} - Started the pipeline execution.
```
### Issue Priority
Priority: 3
### Issue Component
Component: Infrastructure, Component: Other
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Slf4jLoggingEventListener support show general log (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #5198:
URL: https://github.com/apache/hop/issues/5198#issuecomment-2812823930
@jimmybow , feel free to review the PR
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Slf4jLoggingEventListener support show general log (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #5198:
URL: https://github.com/apache/hop/issues/5198#issuecomment-2812657851
I agree, messages will get lost how it is done now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Slf4jLoggingEventListener support show general log (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #5198:
URL: https://github.com/apache/hop/issues/5198#issuecomment-2812657108
.take-issue
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Feature Request]: Slf4jLoggingEventListener support show general log (hop)
Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #5198: [Feature Request]: Slf4jLoggingEventListener support show general log
URL: https://github.com/apache/hop/issues/5198
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org