Reply To: Change LOG level to ERROR

Splash Forums PrettyFaces Users Change LOG level to ERROR Reply To: Change LOG level to ERROR

#26492

The OCPsoft libraries use JDK logging by default, so you need to make sure that your JDK logging has been redirected to Commons Logging, or you need to use a logging adapter like SLF4j, and OCPsoft logging-adapter-slf4k:

<dependency>
    <groupId>org.ocpsoft.logging</groupId>
    <artifactId>logging-adapter-slf4j</artifactId>
    <version>1.0.2.Final</version>
</dependency>

This should do what you want as long as SLF4j is set up.

Alternately, you can simply imlement an OCPsoft logging adapter for Commons Logging:

https://github.com/ocpsoft/logging/tree/master/impl-slf4j/src/main/java/org/ocpsoft/logging/slf4j

And register it:

https://github.com/ocpsoft/logging/blob/master/impl-slf4j/src/main/resources/META-INF/services/org.ocpsoft.logging.spi.LogAdapterFactory

Hope this helps!
~Lincoln