The version of Apache log4j used by SoundHelix.

[[ 🗃 ^aEp6o apache-log4j ]] :: [📥 Inbox] [📤 Outbox] [🐤 Followers] [🤝 Collaborators] [🛠 Commits]

Clone

HTTPS: git clone https://vervis.peers.community/repos/aEp6o

SSH: git clone USERNAME@vervis.peers.community:aEp6o

Branches

Tags

PRE_UGLI_MOVE :: tests /

performance.xml

<!-- This build file is intended to be launched from $LOG4J_HOME/tests 
     which is six levels up from the build file -->
<project name="log4j-tests" default="usage" basedir="." >
 
  <!-- The directory where source files are stored. -->
	
  <property name="project.source.home" value="../src/java/"/>
  <property name="project.classes.home" value="../dist/classes/"/>
  <property name="examples.classes" value="../examples/classes/"/>
  <property name="tests.source.home" value="${base}/tests/src/java/"/>

  <property name="runlen"  value="100000"/>

  <path id="perf.classpath">
    <pathelement location="${project.source.home}"/>
    <pathelement location="${project.classes.home}"/>
    <pathelement location="${examples.classes}"/>
    <pathelement location="${tests.source.home}"/>
    <pathelement location="./classes"/>
  </path>
  
  <target name="usage">
    <echo>
      These are the targets supported by this ANT build scpript:
      
      all - run all performance tests
      null         - run performance tests using NullAppender	
      file         - run performance tests using FileAppender	
      file-noflush - run performance tests using FileAppender without immediate flush	
      file-bufferedio - run performance tests using FileAppender without buffered IO
      telnet - run performace tests with TelnetAppender
      
    </echo>
  </target>

  <target name="clean">
   <delete>
      <fileset dir="./output/" includes="**"/>
    </delete>
   </target>

  <target name="all" depends="null, file, file-noflush, file-bufferedio, telnet">
    <antcall target="loop-group">
      <param name="configFile" value="input/performance/null-appender.xml"/>
    </antcall>
  </target>	

  
  <target name="null">
    <antcall target="loop-group">
      <param name="configFile" value="input/performance/null-appender.xml"/>
    </antcall>
  </target>	

  <target name="file" depends="clean">
    <echo message="*** logging with FileAppender ***"/>
    <antcall target="loop-group">
      <param name="configFile" value="input/performance/file.xml"/>
    </antcall>
  </target>	

  <target name="file-noflush" depends="clean">
    <echo message="*** logging with FileAppender, ImmediateFlush=false ***"/>
    <antcall target="loop-group">
      <param name="configFile" value="input/performance/file-noflush.xml"/>
    </antcall>
  </target>	

  <target name="file-bufferedio" depends="clean">
    <echo message="*** logging with FileAppender, BufferedIO=true ***"/>
    <antcall target="loop-group">
      <param name="configFile" value="input/performance/file-bufferedio.xml"/>
    </antcall>
  </target>	
  
  <target name="telnet" depends="clean">
    <echo message="*** logging with TelnetAppender ***"/>
    <antcall target="loop-group">
      <param name="configFile" value="input/performance/telnet.xml"/>
    </antcall>
  </target>

  

  <target name="loop">
    <echo message="Pattern is ${pattern}"/> 	
    <buildnumber file="output/build.number"/>
    <java classname="org.apache.log4j.performance.Loop" 
	  fork="yes" failonerror="true">
      <classpath refid="perf.classpath"/>
      <sysproperty key="pattern" value="${pattern}"/>
      <sysproperty key="build.number" value="${build.number}"/>
      <arg line="${runlen} ${configFile}"/>
    </java>
  </target>
		
  <target name="loop-group">
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%p - %m%n"/>
    </antcall>
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%-5p - %m%n"/>
    </antcall>
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%r [%t] %-5p %c{2} %x - %m%n"/>
    </antcall>
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%r [%t] %-5p %.10c %x - %m%n"/>
    </antcall>
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%r [%t] %-5p %.20c %x - %m%n"/>
    </antcall>
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%r [%t] %-5p %c - %m%n"/>
    </antcall>
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%d{ISO8601} [%t] %-5p %c %x - %m%n"/>
    </antcall>
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %c %x - %m%n"/>
    </antcall>
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%l - %m%n"/>
    </antcall>
    <antcall target="loop">
      <param name="configFile" value="${configFile}"/>
      <param name="pattern" value="%C.%M.%L - %m%n"/>
    </antcall>
  </target>	

	<!-- ============================================= -->
	<!-- ============= Logging loop ================== -->
	<target name="loggingLoop">
	  <java classname="org.apache.log4j.performance.LoggingLoop" 
		  fork="yes" failonerror="true">
	      <classpath refid="perf.classpath"/>
	      <arg line="10000000 ${configFile}"/>
	   </java>
	 </target>
	
	<target name="loggingGroup">
	    <antcall target="loggingLoop">
	      <param name="configFile" value="input/performance/null-appender-info.xml"/>
	    </antcall>
    </target>
		
</project>
[See repo JSON]