Perf4J.
Performance statistics logging and monitoring toolkit extension to log4j and the java.util.logging framework..
Here is the list of declaration for perf4j. If you use Maven you can use the following code to add the dependency for this POM file.
<dependency> <groupId>org.perf4j</groupId> <artifactId>perf4j</artifactId> <version>0.9.13</version> </dependency>
If you think this Maven repository POM file listing for perf4j is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Name:Apache 2
URL: LICENSE.txt.
The perf4j-0.9.13 has 15 dependencies.The most popular ones are listed in the following table along with their categories and number of artifacts depending on them.
Category | Artifact | Depended By Count |
---|---|---|
Log | commons-logging 1.0.3 Commons Logging | 69 |
Log | slf4j-api 1.5.6 The slf4j API | 64 |
JSP | commons-jexl 1.1 Jexl is an implementation of the JSTL Expression Language with extensions. | 21 |
JUnit | junit 3.8.1 JUnit is a regression testing framework written by Erich Gamma and Kent Beck. It is used by the developer who implements unit tests in Java. | 1966 |
Http | commons-httpclient 3.1 The HttpClient component supports the client-side of RFC 1945 (HTTP/1.0) and RFC 2616 (HTTP/1.1) , several related specifications (RFC 2109 (Cookies) , RFC 2617 (HTTP Authentication) , etc.), and provides a framework by which new request types (methods) or HTTP extensions can be created easily. | 430 |
File | commons-io 1.3.2 Commons-IO contains utility classes, stream implementations, file filters, and endian classes. | 71 |
Log | slf4j-simple 1.5.6 SLF4J Simple binding | 15 |
The following plugins are used in the perf4j-0.9.13.jar
The following packages are defined in the perf4j-0.9.13.jar
org.perf4j org.perf4j.aop org.perf4j.chart org.perf4j.commonslog org.perf4j.commonslog.aop org.perf4j.helpers org.perf4j.javalog org.perf4j.javalog.aop org.perf4j.log4j org.perf4j.log4j.aop org.perf4j.log4j.servlet org.perf4j.servlet org.perf4j.slf4j org.perf4j.slf4j.aop
Here is the content of the POM file.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.perf4j</groupId> <artifactId>perf4j</artifactId> <version>0.9.13</version> <packaging>jar</packaging> <name>Perf4J</name> <description>Performance statistics logging and monitoring toolkit extension to log4j and the java.util.logging framework.</description> <url>http://www.perf4j.org</url> <inceptionYear>2008</inceptionYear> <licenses> <license> <name>Apache 2</name> <url>LICENSE.txt</url> <distribution>repo</distribution> <comments>A business-friendly OSS license</comments> </license> </licenses> <organization> <name>perf4j.org</name> <url>http://www.perf4j.org</url> </organization> <ciManagement> <system>TeamCity</system> <url>http://managed.on.a.private.build.server</url> </ciManagement> <mailingLists> <mailingList> <name>Perf4j Users</name> <post>user@perf4j.codehaus.org</post> <subscribe>http://xircles.codehaus.org/lists/user@perf4j.codehaus.org/subscribe</subscribe> <unsubscribe>http://xircles.codehaus.org/lists/user@perf4j.codehaus.org/unsubscribe</unsubscribe> <archive>http://markmail.org/search/list:org.codehaus.perf4j.user</archive> </mailingList> <mailingList> <name>Perf4j Dev</name> <post>dev@perf4j.codehaus.org</post> <subscribe>http://xircles.codehaus.org/lists/dev@perf4j.codehaus.org/subscribe</subscribe> <unsubscribe>http://xircles.codehaus.org/lists/dev@perf4j.codehaus.org/unsubscribe</unsubscribe> <archive>http://markmail.org/search/list:org.codehaus.perf4j.dev</archive> </mailingList> <mailingList> <name>Perf4j SCM</name> <post>scm@perf4j.codehaus.org</post> <subscribe>http://xircles.codehaus.org/lists/scm@perf4j.codehaus.org/subscribe</subscribe> <unsubscribe>http://xircles.codehaus.org/lists/scm@perf4j.codehaus.org/unsubscribe</unsubscribe> <archive>http://markmail.org/search/list:org.codehaus.perf4j.scm</archive> </mailingList> <mailingList> <name>Perf4j Announce</name> <post>announce@perf4j.codehaus.org</post> <subscribe>http://xircles.codehaus.org/lists/announce@perf4j.codehaus.org/subscribe</subscribe> <unsubscribe>http://xircles.codehaus.org/lists/announce@perf4j.codehaus.org/unsubscribe</unsubscribe> <archive>http://markmail.org/search/list:org.codehaus.perf4j.announce</archive> </mailingList> </mailingLists> <issueManagement> <system>JIRA</system> <url>http://jira.codehaus.org/browse/PERFFORJ</url> </issueManagement> <contributors> <contributor> <name>Patrick Moore</name> <url>http://www.sworddance.com/blog/</url> </contributor> <contributor> <name>Nicholas Whitehead</name> <url>https://helios.dev.java.net/</url> </contributor> </contributors> <scm> <connection>scm:svn:http://svn.codehaus.org/perf4j/</connection> <developerConnection>scm:svn:https://svn.codehaus.org/perf4j/</developerConnection> <url>http://fisheye.codehaus.org/browse/perf4j</url> </scm> <repositories> <repository> <id>Apache iBiblio Mirror</id> <url>http://people.apache.org/repo/m2-ibiblio-rsync-repository/</url> </repository> <repository> <id>Maven2</id> <url>http://repo1.maven.org/maven2/</url> </repository> <repository> <id>Codehaus</id> <url>http://repository.codehaus.org/</url> </repository> <repository> <id>Apache Incubator</id> <url>http://people.apache.org/repo/m2-incubating-repository/</url> </repository> <repository> <id>java.net</id> <url>http://download.java.net/maven/1</url> <layout>legacy</layout> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>Codehaus</id> <url>http://repository.codehaus.org/</url> </pluginRepository> <pluginRepository> <id>Codehaus Mojo</id> <url>http://repository.codehaus.org/org/codehaus/mojo/</url> </pluginRepository> <pluginRepository> <id>Codehaus Snapshots</id> <url>http://snapshots.repository.codehaus.org/</url> </pluginRepository> <pluginRepository> <id>Maven2</id> <url>http://repo1.maven.org/maven2/</url> </pluginRepository> <pluginRepository> <id>maven snapshots</id> <url>http://people.apache.org/repo/m2-snapshot-repository/</url> </pluginRepository> </pluginRepositories> <dependencies> <!-- if you use the log4j implementation of perf4j, you must also include this dependency --> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.14</version> <scope>compile</scope> <optional>true</optional> </dependency> <!-- if you use the commons logging code (in the commonslog package), you must also include this dependency --> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.0.3</version> <scope>compile</scope> <optional>true</optional> </dependency> <!-- if you use the slf4j logging code, you must also include this dependency --> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.5.6</version> <scope>compile</scope> <optional>true</optional> </dependency> <!-- If you use the graphing servlets of perf4j, the servlet package should be provided by your container --> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.4</version> <scope>provided</scope> </dependency> <!-- if you use the Aspect-J based AOP functionality, you must also include these following dependencies --> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.6.1</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.6.1</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>commons-jexl</groupId> <artifactId>commons-jexl</artifactId> <version>1.1</version> <scope>compile</scope> <optional>true</optional> </dependency> <!-- if you use EJB Interceptors, you DON'T need to include the following dependency as the required classes shouldcome with your Java EE server --> <dependency> <groupId>javax.ejb</groupId> <artifactId>ejb-api</artifactId> <version>3.0</version> <scope>provided</scope> </dependency> <!-- if you use Spring to manage the AOP funcionality, you must also include these following dependencies --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring</artifactId> <version>2.0.6</version> <scope>compile</scope> <optional>true</optional> </dependency> <dependency> <groupId>cglib</groupId> <artifactId>cglib</artifactId> <version>2.1_3</version> <scope>compile</scope> <optional>true</optional> </dependency> <!-- The following dependencies are required for testing only --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-mock</artifactId> <version>2.0.6</version> <scope>test</scope> </dependency> <dependency> <groupId>commons-httpclient</groupId> <artifactId>commons-httpclient</artifactId> <version>3.1</version> <scope>test</scope> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>1.3.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.5.6</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <!-- Tell Maven to compile for Java 1.5 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <!-- Specify Java 1.5 when running 'mvn idea:idea' --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-idea-plugin</artifactId> <inherited>true</inherited> <configuration> <jdkName>1.5</jdkName> </configuration> </plugin> <!-- When deploying tell Maven not to create unique binaries for each snapshot --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <inherited>true</inherited> <configuration> <uniqueVersion>false</uniqueVersion> </configuration> </plugin> <!-- Set up code coverage --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>emma-maven-plugin</artifactId> <version>1.0-alpha-1</version> <inherited>true</inherited> </plugin> <!-- Genearate a javadoc jar when deploying --> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <version>2.1</version> <inherited>true</inherited> <configuration> <links> <link>http://java.sun.com/j2se/1.5.0/docs/api</link> <link>http://logging.apache.org/log4j/1.2/apidocs</link> <link>http://commons.apache.org/logging/apidocs</link> <link>http://www.slf4j.org/api</link> </links> </configuration> <executions> <execution> <phase>verify</phase> <goals> <goal>jar</goal> </goals> <configuration> <attach>true</attach> </configuration> </execution> </executions> </plugin> <!-- Generate a jar containing the source files when deploying --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <inherited>true</inherited> <executions> <execution> <phase>verify</phase> <goals> <goal>jar</goal> </goals> <configuration> <attach>true</attach> </configuration> </execution> </executions> </plugin> <!-- Tell maven to generate a version.properties files from SVN --> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>build-versions-file</id> <phase>compile</phase> <inherited>false</inherited> <configuration> <tasks> <mkdir dir="${project.build.directory}" /> <exec executable="svn" output="${project.build.directory}/version.properties"> <arg value="info" /> <arg value="." /> <redirector> <outputfilterchain> <linecontains> <contains value="Revision" /> </linecontains> <tokenfilter> <replacestring from="Revision: " to="perf4j.revision=" /> </tokenfilter> </outputfilterchain> </redirector> </exec> <echo file="${project.build.directory}/version.properties" append="true"> perf4j.version=${project.version} </echo> <fixcrlf srcdir="${project.build.directory}" eol="lf" includes="version.properties" /> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <!-- Tell the Maven jar plugin to generate multiple jars: one with all the files, then ones that JUST contain the particular logging framework extensions (e.g. log4j, java.util.logging, commons logging or slf4j). These separate log4j, javalog, commonslog and slf4j jars are needed when using the AspectJ compiler so that only ONE TimingAspect is included. Also, tell the jar plugin to make org.per4j.LogParser the main executable class. --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <!-- The main jar includes all classes and generates a META-INF manifest file that species LogParser as the jar's main class --> <configuration> <archive> <manifest> <addDefaultImplementationEntries>true</addDefaultImplementationEntries> <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries> <mainClass>org.perf4j.LogParser</mainClass> </manifest> </archive> </configuration> <executions> <!-- This jar includes only the log4j classes and NOT the other logging framework classes --> <execution> <id>log4jAspects</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <classifier>log4jonly</classifier> <excludes> <exclude>**/javalog/**</exclude> <exclude>**/commonslog/**</exclude> <exclude>**/slf4j/**</exclude> </excludes> </configuration> </execution> <!-- This jar includes only the java.util.logging classes and NOT the other logging frameworks --> <execution> <id>javalogAspects</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <classifier>javalogonly</classifier> <excludes> <exclude>**/log4j/**</exclude> <exclude>**/commonslog/**</exclude> <exclude>**/slf4j/**</exclude> </excludes> </configuration> </execution> <!-- This jar includes only the commonslog classes and NOT the other logging framework classes --> <execution> <id>commonslogAspects</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <classifier>commonslogonly</classifier> <excludes> <exclude>**/log4j/**</exclude> <exclude>**/javalog/**</exclude> <exclude>**/slf4j/**</exclude> </excludes> </configuration> </execution> <!-- This jar includes only the slf4j classes and NOT the other logging framework classes --> <execution> <id>slf4jAspects</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <classifier>slf4jonly</classifier> <excludes> <exclude>**/log4j/**</exclude> <exclude>**/javalog/**</exclude> <exclude>**/commonslog/**</exclude> </excludes> </configuration> </execution> </executions> </plugin> <!-- Tell surefire which tests to run, and to fork once when running, and set system properties. --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.3</version> <inherited>true</inherited> <configuration> <forkMode>once</forkMode> <reportFormat>plain</reportFormat> <trimStackTrace>false</trimStackTrace> <includes> <include>**/*Test.java</include> </includes> <argLine>-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/1.6.1/aspectjweaver-1.6.1.jar</argLine> <systemProperties> <property> <name>log4j.debug</name> <value>false</value> </property> </systemProperties> </configuration> </plugin> </plugins> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-webdav</artifactId> <version>1.0-beta-2</version> </extension> </extensions> </build> <reporting> <plugins> <!-- Add the javadoc to the reporting section in the maven site --> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <attach>true</attach> <links> <link>http://java.sun.com/j2se/1.5.0/docs/api</link> <link>http://logging.apache.org/log4j/1.2/apidocs</link> <link>http://commons.apache.org/logging/apidocs</link> <link>http://www.slf4j.org/api</link> </links> </configuration> <inherited>true</inherited> </plugin> <!-- Add the code coverage reports to the site --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>emma-maven-plugin</artifactId> </plugin> <!-- Add the test results to the site --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> </plugin> <!-- Create a javadoc-style source reference on the site --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jxr-plugin</artifactId> </plugin> </plugins> </reporting> <distributionManagement> <repository> <id>codehaus.org</id> <name>Perf4j Repository</name> <url>dav:https://dav.codehaus.org/repository/perf4j/</url> </repository> <snapshotRepository> <id>codehaus.org</id> <uniqueVersion>false</uniqueVersion> <name>Perf4j Snapshot Repository</name> <url>dav:https://dav.codehaus.org/snapshots.repository/perf4j/</url> </snapshotRepository> <site> <id>codehaus.org</id> <url>dav:https://dav.codehaus.org/perf4j/</url> </site> <downloadUrl> http://repository.codehaus.org/org/perf4j/perf4j/ </downloadUrl> </distributionManagement> </project>