ohm_g7 Posted March 17, 2010 Share Posted March 17, 2010 I want to Write log from Jasperserver to SyslogHow I do? Please tell me.Thank yor reply Link to comment Share on other sites More sharing options...
ohm_g7 Posted March 23, 2010 Author Share Posted March 23, 2010 I saw jasperserver use log4j for write log.So I edit this file /<path-tomcat>/webapps/jasperserver/WEB-INF/log4j.propertiesI add this code.log4j.rootLogger=INFO, SYSLOGlog4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppenderlog4j.appender.SYSLOG.syslogHost=127.0.0.1log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayoutlog4j.appender.SYSLOG.layout.conversionPattern=%d{ISO8601} %-5p [%t] %c{2} %x - %m%nlog4j.appender.SYSLOG.Facility=LOCAL1I want jasper write log to syslog too.In /etc/syslog.conf. I add this code.local1.* /var/log/catalina.logBut when I start tomcat I got notthig in /var/log/catalina.log.I saw in /<path-tomcat>/webapps/jasperserver/WEB-INF/logs/jasperserver.logI found log in there.I don't know what 's wrong.Please let me know.Thank you for reply.Post Edited by ohm_g7 at 03/23/2010 04:23 Link to comment Share on other sites More sharing options...
swood Posted March 29, 2010 Share Posted March 29, 2010 This is a log4j + Tomcat issue. I see on the web a lot of people asking for help doing this sort of configuration, but not a lot of answers. Can you just append to an existing log file? Like at http://tomcat.apache.org/tomcat-5.5-doc/logging.html ? ShermanJaspersoft Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now