Changeset 32623 for other-projects/the-macronizer
- Timestamp:
- 2018-11-22T19:09:30+13:00 (5 years ago)
- Location:
- other-projects/the-macronizer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/the-macronizer/trunk/build.xml
r32622 r32623 78 78 with the overwrite attribute.--> 79 79 80 <!-- 1. Create the log4j.properties file from its log4j.properties.in template file and put it into the correct location in the associated GS3 installation81 2. Create the macronizer.xml tomcat context file from the macronizer.xml.in template file and put it into the correct location in the associated GS3 installation82 -->83 84 80 <filter token="macronizer.home" value="${basedir}"/> 85 <copy file="${build.dir.exp}/log4j.properties.in" tofile="${gsdl3.web.home}/WEB-INF/classes/log4j.properties" filtering="true" overwrite="true"/> 81 82 <!-- 1. Create the log4j.properties file from its log4j.properties.in template file and put it into the *Macronizer* installation's web/WEB-INF/classes folder --> 83 <copy file="${build.dir.exp}/log4j.properties.in" tofile="${build.dir.exp}/WEB-INF/classes/log4j.properties" filtering="true" overwrite="true"/> 84 85 <!-- 2. Create the macronizer.xml tomcat context file from the macronizer.xml.in template file and put it into the correct location in the associated GS3 installation --> 86 86 <copy file="${build.dir.exp}/macronizer.xml.in" tofile="${gsdl3.src.home}/packages/tomcat/conf/Catalina/localhost/macronizer.xml" filtering="true" overwrite="true"/> 87 87 -
other-projects/the-macronizer/trunk/web/log4j.properties.in
r32622 r32623 1 1 # See for basic example https://stackoverflow.com/questions/125 32339/no-appenders-could-be-found-for-loggerlog4j 2 2 # For better examples, see /greenstone/greenstone3/web/WEB-INF/classes/log4j.properties 3 3 # Manual (examples use XML versions of log4j config files): https://logging.apache.org/log4j/2.x/manual/configuration.html 4 # https://logging.apache.org/log4j/2.x/manual/configuration.html#Properties 5 # HH (0-24 hrs) vs hh (0-12 hrs, am/pm): https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html 6 # https://logging.apache.org/log4j/1.2/manual.html 4 7 ####################### 5 8 … … 13 16 # copied from GS3 14 17 log4j.category.web.servlets.DirectInput=INFO, macronlog 18 # Prevent macronizer logging duplicating its messages into rootLogger: 19 # https://stackoverflow.com/questions/9208710/java-log4j-log-to-both-category-and-root-logger 15 20 log4j.additivity.web.servlets.DirectInput=false 16 21 … … 20 25 log4j.appender.macronlog.File=${macronizer.logplace}/macron.log 21 26 22 # if you have more logs, define rootcategory, appender and appender.File for it as above27 # if you have more logs, define category, additivity, appender and appender.File for it as above 23 28 # for each log also set the format of the output as below, after setting the layout to use PatternLayout class to parse the format 24 29
Note:
See TracChangeset
for help on using the changeset viewer.