Linda, Here is (was) our stanza for 3.5.2.1:
<appender name="console" class="org.apache.log4j.ConsoleAppender"> <param name="encoding" value="UTF-8" /> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%d %-5p [%c] - <%m>%n" /> </layout> <!-- exclude listing services when debugging org.jasig.* with partial match of log message --> <filter class="org.apache.log4j.varia.StringMatchFilter"> <param name="stringToMatch" value="Adding registered service" /> <param name="acceptOnMatch" value="false" /> </filter> <!-- exclude log messages when load balancer checks heartbeat --> <filter class="org.apache.log4j.varia.StringMatchFilter"> <param name="stringToMatch" value="Extractor did not generate service" /> <param name="acceptOnMatch" value="false" /> </filter> <!-- following filter turns off all messages unless stated otherwise with a prior filter --> <!-- <filter class="org.apache.log4j.varia.DenyAllFilter" /> --> </appender> Ray P.S. you may want to consider moving to CAS 6.x. Configuration files will have to be remain either way. On Fri, 2019-05-10 at 13:08 -0800, Linda Toth wrote: I forgot to mention that I actually need to place this into log4j.xml and not the log4j.properties file for the version we are still using, 3.5.2.1 So, I am probably looking at *something* like this .. <appender name="utilHttpClient" class=" org.apache.log4j.varia.StringMatchFilter"> <param name="StringToMatch" value="WARN [org.jasig.cas.util.HttpClient] - Error Sending message to url endpoint" /> <param name="AcceptOnMatch" value="false" /> </appender> YES YES : we are waiting for the new VM with tomcat 8 so we can migrate to CAS 5.4.x. But today, removing these warnings would greatly improve our ability to diagnose failures to target servers. Linda --------------- *Education is the most powerful weapon which you can use to change the world. Nelson Mandela* Linda Toth University of Alaska - Office of Information Technology (OIT) - Identity and Access Management 2025 Yukon Drive, Suite 103 Fairbanks, Alaska 99775 Tel: 907-450-8320 Fax: 907-450-8381 <mailto:linda.t...@alaska.edu> linda.t...@alaska.edu | <http://www.alaska.edu/oit/> www.alaska.edu/oit/ On Fri, May 10, 2019 at 12:51 PM Linda Toth < <mailto:ltt...@alaska.edu> ltt...@alaska.edu > wrote: I want to remove warnings for this type of message in log4j.xml WARN [org.jasig.cas.util.HttpClient] - Error Sending message to url endpoint I have not modified that file in a long time, so I am asking confirmation that this will do the job: 1. log4j.appender.file.filter.01=org.apache.log4j.varia.StringMatchFilter 2. log4j.appender.file.filter.01.StringToMatch=WARN [org.jasig.cas.util.HttpClient] - Error Sending message to url endpoint 3. log4j.appender.file.filter.01.AcceptOnMatch=false Linda --------------- *Education is the most powerful weapon which you can use to change the world. Nelson Mandela* Linda Toth University of Alaska - Office of Information Technology (OIT) - Identity and Access Management 2025 Yukon Drive, Suite 103 Fairbanks, Alaska 99775 Tel: 907-450-8320 Fax: 907-450-8381 <mailto:linda.t...@alaska.edu> linda.t...@alaska.edu | <http://www.alaska.edu/oit/> www.alaska.edu/oit/ -- Ray Bon Programmer Analyst Development Services, University Systems 2507218831 | CLE 019 | r...@uvic.ca -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscr...@apereo.org. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/f0f66523a2d687b512476a1b051fca5a3abbe926.camel%40uvic.ca.