Jump to content

How to write log from Jasperserver to Syslog


ohm_g7

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I saw jasperserver use log4j for write log.

So I edit this file /<path-tomcat>/webapps/jasperserver/WEB-INF/log4j.properties

I 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=LOCAL1

I want jasper write log to syslog too.In /etc/syslog.conf. I add this code.

local1.*                                                /var/log/catalina.log

But when I start tomcat I got notthig in /var/log/catalina.log.

I saw in /<path-tomcat>/webapps/jasperserver/WEB-INF/logs/jasperserver.log

I 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...