Matthias247 / jawampa

Web Application Messaging Protocol (WAMP v2) support for Java
Apache License 2.0
148 stars 57 forks source link

Debug flag? #37

Open fconrady opened 9 years ago

fconrady commented 9 years ago

Is it possible to set a debug flag in Jawampa? In Autobahn's Python, JavaScript and C++ clients one can do that and get more detailed console output. This is helpful for debugging.

Matthias247 commented 9 years ago

Unfortunatly there's not that much debug support.
In the serialization and deserialization handlers there are calls towards the Netty logger instances which should log received and sent messages. See for example here: https://github.com/Matthias247/jawampa/blob/master/src/main/java/ws/wamp/jawampa/transport/WampDeserializationHandler.java#L99

However I couldn't really find out how to configure Netty logging properly so that it forwards the messages to a logging framework of your choice. But if it's important for you and you want to investigate it - this would be the direction.