Skip to content

Commit

Permalink
MONDRIAN:
Browse files Browse the repository at this point in the history
       Added log4j jar file so build works and an example for configuring
       log4j using the log4j.configuration system property

[git-p4: depot-paths = "//open/mondrian/": change = 3272]
  • Loading branch information
Richard Emberson committed Mar 1, 2005
1 parent d0f3c8e commit 0adbcae
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.xml
Expand Up @@ -82,6 +82,7 @@ ${lib.dir}/jsp-api.jar,
${lib.dir}/commons-collections.jar,
${lib.dir}/commons-dbcp.jar,
${lib.dir}/commons-pool.jar,
${lib.dir}/log4j-1.2.9.jar,
${testlib.dir}/junit.jar
demo/mysql/FoodMartDropTables.sql,
demo/mysql/FoodMartData.sql"/>
Expand All @@ -94,6 +95,7 @@ demo/mysql/FoodMartData.sql"/>
<pathelement location="${lib.dir}/commons-collections.jar"/>
<pathelement location="${lib.dir}/commons-pool.jar"/>
<pathelement location="${lib.dir}/javacup.jar"/>
<pathelement location="${lib.dir}/log4j-1.2.9.jar"/>
<pathelement location="${lib.dir}/mof.jar"/>
<pathelement location="${lib.dir}/jmi.jar"/>
<pathelement location="${lib.dir}/xalan.jar"/>
Expand Down Expand Up @@ -369,6 +371,8 @@ in {mondrian.foodmart.jdbcURL}.">
<java classpathref="project.test.classpath" classname="mondrian.test.Main"
fork="yes">

<sysproperty key="log4j.configuration"
value="file://${project.location}/log4j.properties"/>
<sysproperty key="mondrian.jdbcDrivers"
value="${mondrian.jdbcDrivers}"/>
<sysproperty key="mondrian.foodmart.jdbcURL"
Expand All @@ -390,6 +394,9 @@ in {mondrian.foodmart.jdbcURL}.">
<classpath>
<path refid="project.test.classpath"/>
</classpath>

<sysproperty key="log4j.configuration"
value="file://${project.location}/log4j.properties"/>
<sysproperty key="mondrian.jdbcDrivers"
value="${mondrian.jdbcDrivers}"/>
<sysproperty key="mondrian.test.connectString"
Expand Down
4 changes: 4 additions & 0 deletions mondrian.properties
Expand Up @@ -42,6 +42,10 @@ mondrian.foodmart.jdbcURL.mysql=jdbc:mysql://localhost/foodmart?user=foodmart&pa
###############################################################################
# Diagnostics & tuning

# set mondrian logging information if not provided by containing application.
# replace LOG4J_PROPERTIES_LOCATION with path to log4j.properties file.
#log4j.configuration=file://LOG4J_PROPERTIES_LOCATION/log4j.properties

# Set to 1 or higher to print out SQL statements.
# Set to 2 or higher to print cache activity.
#mondrian.trace.level=2
Expand Down

0 comments on commit 0adbcae

Please sign in to comment.