jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Cox <crankydi...@gmail.com>
Subject Help controlling log messages
Date Wed, 18 Mar 2009 18:45:41 GMT
Hi,

I need some help configuring jackrabbits logging.  Do you see anything 
wrong with the following?


java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8001 
-Dlog4j.configuration=file:///home/scox/dev/design-repo-se/src/main/resources/log4j.properties

-Dlog4j.debug=true -classpath 
/home/scox/dev/design-repo-se/target/test-classes:/home/scox/dev/design-repo-se/target/classes:/home/scox/.m2/repository/org/specs/specs/1.4.4-SNAPSHOT/specs-1.4.4-SNAPSHOT.jar:/home/scox/.m2/repository/junit/junit/4.4/junit-4.4.jar:/home/scox/.m2/repository/org/slf4j/slf4j-api/1.5.2/slf4j-api-1.5.2.jar:/home/scox/.m2/repository/org/slf4j/slf4j-simple/1.5.2/slf4j-simple-1.5.2.jar:/home/scox/.m2/repository/org/slf4j/slf4j-log4j12/1.5.2/slf4j-log4j12-1.5.2.jar:/home/scox/.m2/repository/log4j/log4j/1.2.14/log4j-1.2.14.jar:/home/scox/.m2/repository/org/slf4j/log4j-over-slf4j/1.5.2/log4j-over-slf4j-1.5.2.jar:/home/scox/.m2/repository/javax/jcr/jcr/1.0/jcr-1.0.jar:/home/scox/.m2/repository/org/apache/jackrabbit/jackrabbit-core/1.4.5/jackrabbit-core-1.4.5.jar:/home/scox/.m2/repository/concurrent/concurrent/1.3.4/concurrent-1.3.4.jar:/home/scox/.m2/repository/commons-collections/commons-collections/3.1/commons-collections-3.1.jar:/home/scox/.m2/repository/org/apache/jackrabbit/jackra
bbit-api/1.4/jackrabbit-api-1.4.jar:/home/scox/.m2/repository/org/apache/jackrabbit/jackrabbit-jcr-commons/1.4/jackrabbit-jcr-commons-1.4.jar:/home/scox/.m2/repository/org/apache/jackrabbit/jackrabbit-spi-commons/1.4/jackrabbit-sp

Classpath has been trimmed a lot...

Contents of 
/home/scox/dev/design-repo-se/src/main/resources/log4j.properties


log4j.rootLogger=WARN, stdout

log4j.logger.org.apache.jackrabbit=ERROR

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.threshold=WARN

# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n

log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=example.log

log4j.appender.R.MaxFileSize=100KB
# Keep one backup file
log4j.appender.R.MaxBackupIndex=1

log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n

When I run the command I get the following output:

[INFO]   The artifact handler should
[INFO] 372 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - 
Starting repository...
[INFO] 375 [main] WARN org.apache.jackrabbit.core.util.RepositoryLock - 
Existing lock file 
/home/scox/dev/pervasive/v10/design-repo-se/target/integration-test-repo/.lock 
detected. Repository was not shut down properly.
[INFO] 403 [main] INFO 
org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem 
initialized at path target/integration-test-repo/repository
[INFO] 653 [main] INFO 
org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem 
initialized at path target/integration-test-repo/version
[INFO] 1370 [main] INFO 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager 
- Database: Apache Derby / 10.2.1.6 - (452058)
[INFO] 1370 [main] INFO 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager 
- Driver: Apache Derby Embedded JDBC Driver / 10.2.1.6 - (452058)
[INFO] 2127 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - 
initializing workspace 'default'...
[INFO] 2127 [main] INFO 
org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem 
initialized at path target/integration-test-repo/workspaces/default
[INFO] 2182 [main] INFO 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager 
- Database: Apache Derby / 10.2.1.6 - (452058)
[INFO] 2182 [main] INFO 
org.apache.jackrabbit.core.persistence.bundle.util.ConnectionRecoveryManager 
- Driver: Apache Derby Embedded JDBC Driver / 10.2.1.6 - (452058)
[INFO] 2469 [main] INFO org.apache.jackrabbit.core.RepositoryImpl - 
workspace 'default' initialized
[INFO] log4j: Using URL 
[file:/home/scox/dev/pervasive/v10/design-repo-se/src/main/resources/log4j.properties] 
for automatic log4j configuration.
[INFO] log4j: Reading configuration from URL 
file:/home/scox/dev/pervasive/v10/design-repo-se/src/main/resources/log4j.properties
[INFO] log4j: Parsing for [root] with value=[WARN, stdout].
[INFO] log4j: Level token is [WARN].
[INFO] log4j: Category root set to WARN
[INFO] log4j: Parsing appender named "stdout".
[INFO] log4j: Parsing layout options for "stdout".
[INFO] log4j: Setting property [conversionPattern] to [%5p [%t] (%F:%L) 
- %m%n].
[INFO] log4j: End of parsing for "stdout".
[INFO] log4j: Parsed "stdout" options.
[INFO] log4j: Parsing for [org.apache.jackrabbit] with value=[ERROR].
[INFO] log4j: Level token is [ERROR].
[INFO] log4j: Category org.apache.jackrabbit set to ERROR
[INFO] log4j: Handling log4j.additivity.org.apache.jackrabbit=[null]
[INFO] log4j: Parsing for [com.pervasive] with value=[DEBUG].
[INFO] log4j: Level token is [DEBUG].
[INFO] log4j: Category com.pervasive set to DEBUG
[INFO] log4j: Handling log4j.additivity.com.pervasive=[null]
[INFO] log4j: Finished configuring.
[INFO] 2850 [main] INFO 
org.apache.jackrabbit.core.fs.local.LocalFileSystem - LocalFileSystem 
initialized at path target/integration-test-repo/repository/index
[INFO] 2984 [main] INFO org.apache.jackrabbit.core.query.lucene.Recovery 
- Found uncommitted redo log. Applying changes now...
[INFO] 3323 [main] INFO org.apache.ja
[snip]

Any help is appreciated.


--
Samuel Cox

Mime
View raw message