Search code examples
jsfloggingjsf-2myfaces

How to configure Myfaces to log through logback


How do I configure Myfaces to write to the logs through logback implementation which rest of my application uses ? Currently I'm writing logs from all parts of my application except the messages by Myfaces in log files.

I can find the messages from Myfaces even in the netbeans console.


Using Myfaces 2.1.8 with Glassfish 3.1 (Netbeans)


Solution

  • Myfaces may be logging to JUL. So you may be required to use jul-to-slf4j to redirect all logging to SLF4J.

    Checkout this for how to fix.