Skip to content

Server-side logging seems to be broken #340

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
swiss-chris opened this issue Dec 23, 2022 · 2 comments
Closed

Server-side logging seems to be broken #340

swiss-chris opened this issue Dec 23, 2022 · 2 comments

Comments

@swiss-chris
Copy link
Contributor

When running this Application, I expected to see a log message being printed in the console every second, according to the format defined inside loggingChannelAdapter(). Something like:

The time 23 December 2022, 15:25:34 has been sent to the WebSocketSession WebSocketClient-AsyncIO-10

Am I missing something or is it broken ?

This would be very helpful, because the first time I ran the server application, I though something was broken, because all the console logs ist the Spring Boot banner and then the line:

Hit 'Enter' to terminate

"'The time ' + payload + ' has been sent to the WebSocketSession ' + headers.simpSessionId");

@swiss-chris swiss-chris changed the title Server Side Logging seems to be broken Server-side logging seems to be broken Dec 23, 2022
@swiss-chris
Copy link
Contributor Author

swiss-chris commented Dec 23, 2022

PS: I tried a few things to get it to work, but was unsuccessful. I'm used to logging with the DSL, but I'm not familiar with logging in the basic (non-DSL) SI. Any help to get this to work would be appreciated.

@artembilan
Copy link
Member

Fixed in the latest main.

The log() in Java DSL is fully based on the LoggingHandler, so I'm not sure what problem have you faced to trying few things: https://docs.spring.io/spring-integration/docs/current/reference/html/messaging-endpoints.html#logging-channel-adapter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants