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 7 years, 2 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!
The forum ‘PrettyFaces Users’ is closed to new topics and replies.
Comments are closed.
If you find our tools useful, please consider making a donation to help us stay online and building software!