I'm trying to use logger to send events to the local syslog server within Tomcat.
In Apache you can do the following:
LogFormat "%h %A %l %u %t \"%r\" %>s %p %b" Events
CustomLog “|/usr/bin/logger -t httpd -p local6.info” Events
However, I am trying to use the AccessLogValve in Tomcat, anything within "pattern" is interpreted as a string.
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt" rotatable="false" resolveHosts="false" pattern="%h %l %u %t "%r" %s %b" />
Is there anyway to send access logs to a syslog server without using log4j or logback? We need to deploy this configuration to Prod hosts. Logger for Apache has been deployed to prod. We would prefer to use logger as this would require no changes to our prod Applications.