Splash › Forums › PrettyFaces Users › Change LOG level to ERROR
Tagged: log LogFactory ocpsoft
This topic contains 1 reply, has 2 voices, and was last updated by Lincoln Baxter III 2 years, 11 months ago.
Hi, i usualy use org.apache.commons.logging.LogFactory so i add
to my log4.xml config file but ocpsoft still show debug messages why?
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:
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:
And register it:
Hope this helps!
You must be logged in to reply to this topic.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!