I am trying to modify log4j.properties so all debugging from scriptrunner addon can be redirected to a separate file , not in atlassian-jira.log.
I have tried this, but no groovy.log is created under log subdirectory of the JIRA HOME directory:
log4j.appender.GroovyLog=com.atlassian.jira.logging.JiraHomeAppender
log4j.appender.GroovyLog.File=groovy.log
log4j.appender.GroovyLog.MaxFileSize=20480KB
log4j.appender.GroovyLog.MaxBackupIndex=5
log4j.appender.GroovyLog.layout=org.apache.log4j.PatternLayout
log4j.appender.GroovyLog.layout.ConversionPattern=%d %t %p [%c{4}] %m%n
log4j.appender.GroovyLog.Threshold=DEBUG
log4j.category.com.onresolve.jira.groovy = DEBUG, console, GroovyLog
log4j.additivity.com.onresolve.jira.groovy = false
If instead I replace the first 2 lines for this:
log4j.appender.GroovyLog=org.apache.log4j.RollingFileAppender
log4j.appender.GroovyLog.File=${catalina.home}/logs/groovy.log
It does create groovy.log under the logs subdirectory of the JIRA INSTALLATION directory.
I need groovy.log to be where all application logs are in the log subdirectory of the JIRA HOME directory.
Thanks in advance,