I’m writing a Flex app on top of a Java web application using BlazeDS. BlazeDS has logging inside of it, but I want to set it up to Use the same logging framework I have in my application.
Is there a way to setup BlazeDS to use Log4J? Or am I stuck with the Flex logging stuff that’s already baked into BlazeDS?
No, out of box BlazeDS does not support log4j or other frameworks directly.
However, it’s really simple to add support for your favourite logging framework; I used the following to get the output into SLF4J:
.. and to use it, enable it in
services-config.xml: