I have Solr 4.2.1 and want to use log4j. I have followed wiki. Here are my jar versions:
java -jar start.jar --version Active Options: [default, *] Version Information on 15 entries in the classpath. Note: order presented here is how they would appear on the classpath. changes to the OPTIONS=[option,option,...] command line option will be reflected here. 0: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-xml-8.1.8.v20121106.jar 1: 3.0.0.v201112011016 | ${jetty.home}/lib/servlet-api-3.0.jar 2: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-http-8.1.8.v20121106.jar 3: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-continuation-8.1.8.v20121106.jar 4: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-server-8.1.8.v20121106.jar 5: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-security-8.1.8.v20121106.jar 6: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-servlet-8.1.8.v20121106.jar 7: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-webapp-8.1.8.v20121106.jar 8: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-deploy-8.1.8.v20121106.jar 9: 1.7.5 | ${jetty.home}/lib/ext/jcl-over-slf4j-1.7.5.jar 10: 1.2.17 | ${jetty.home}/lib/ext/log4j-1.2.17.jar 11: 1.7.5 | ${jetty.home}/lib/ext/slf4j-api-1.7.5.jar 12: 1.7.5 | ${jetty.home}/lib/ext/slf4j-log4j12-1.7.5.jar 13: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-util-8.1.8.v20121106.jar 14: 8.1.8.v20121106 | ${jetty.home}/lib/jetty-io-8.1.8.v20121106.jar I created a log4j.properties under etc folder and this is inside of it: # Logging level log4j.rootLogger=WARN, file #- size rotation with log cleanup. log4j.appender.file=org.apache.log4j.RollingFileAppender log4j.appender.file.MaxFileSize=4MB log4j.appender.file.MaxBackupIndex=9 #- File to log to and log format log4j.appender.file.File=logs/solr.log log4j.appender.file.layout=org.apache.log4j.PatternLayout log4j.appender.file.layout.ConversionPattern=%-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; %C; %m\n When I run start.jar I get that: java -Dlog4j.debug -Dlog4j.configuration=file:////home/kk/Desktop/preprop/etc/log4j.properties -jar start.jar log4j: Using URL [file:////home/kk/Desktop/preprop/etc/log4j.properties] for automatic log4j configuration. log4j: Reading configuration from URL file:////home/kk/Desktop/preprop/etc/log4j.properties log4j: Parsing for [root] with value=[WARN, file]. log4j: Level token is [WARN]. log4j: Category root set to WARN log4j: Parsing appender named "file". log4j: Parsing layout options for "file". log4j: Setting property [conversionPattern] to [%-5p - %d{yyyy-MM-dd HH:mm:ss.SSS}; %C; %m ]. log4j: End of parsing for "file". log4j: Setting property [maxBackupIndex] to [9]. log4j: Setting property [file] to [logs/solr.log]. log4j: Setting property [maxFileSize] to [4MB]. log4j: setFile called: logs/solr.log, true log4j: setFile ended log4j: Parsed "file" options. log4j: Finished configuring. *Null identity service, trying login service: null Finding identity service: null* What I am missing?