I'm still a bit confused about the relationship of the logging levels defined in logging.ini file vs properties.xml. Just a second ago I couldn't get a single line, finally put everything at DEBUG for sanity check.

All I want is INFO level for connectors and WARN throughout the rest. I thought if I set the logging.ini rootAppender to WARN and just the connectors subsystem to INFO should do it. I guess I don't understand it like I should. Thoughts?

I even have this statement in the constructor of my connector that doesn't print, Logging.connectors.log(Level.ALL, "DupFinder Version 1.0.0");

Thanks!
log4j.rootLogger=WARN, MAIN

log4j.appender.MAIN=org.apache.log4j.RollingFileAppender
log4j.appender.MAIN.File=logs/manifoldcf.log
log4j.appender.MAIN.MaxFileSize=50MB
log4j.appender.MAIN.MaxBackupIndex=10
log4j.appender.MAIN.layout=org.apache.log4j.PatternLayout
log4j.appender.MAIN.layout.ConversionPattern=%5p %d [%t] (%F:%L) - %m%n
<?xml version="1.0" encoding="UTF-8" ?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one or more
 contributor license agreements.  See the NOTICE file distributed with
 this work for additional WARNrmation regarding copyright ownership.
 The ASF licenses this file to You under the Apache License, Version 2.0
 (the "License"); you may not use this file except in compliance with
 the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
-->

<configuration>
  <!-- Select Derby as the database implementation, and specify where the database will be stored -->
  <property name="org.apache.manifoldcf.databaseimplementationclass" value="org.apache.manifoldcf.core.database.DBInterfacePostgreSQL"/>
  <!--<property name="org.apache.manifoldcf.postgresql.hostname" value="valaddev.usa.systemware.com"/>-->
  <property name="org.apache.manifoldcf.dbsuperusername" value="postgres"/>
  <property name="org.apache.manifoldcf.dbsuperuserpassword" value="Passw0rd"/>
  <!-- Point to a specific logging file -->
  <property name="org.apache.manifoldcf.logconfigfile" value="logging.ini"/>
  <!-- Specify the connectors to be loaded -->
  <property name="org.apache.manifoldcf.connectorsconfigurationfile" value="connectors.xml"/>
  <property name="org.apache.manifoldcf.database.maxhandles" value="105"/>
  <property name="org.apache.manifoldcf.crawler.threads" value="100"/>
  <!-- Tell LCF where to find the connector jars -->
  <libdir path="connector-lib"/>
  <property name="org.apache.manifoldcf.synchdirectory" value="sync"/>  
  <!-- WSDD references -->
  <!-- Any additional properties go here -->
  <property name="org.apache.manifoldcf.db" value="WARN"/>
  <property name="org.apache.manifoldcf.root" value="WARN"/>
  <property name="org.apache.manifoldcf.misc" value="WARN"/>
  <property name="org.apache.manifoldcf.lock" value="WARN"/>
  <property name="org.apache.manifoldcf.cache" value="WARN"/>
  <property name="org.apache.manifoldcf.keystore" value="WARN"/>
  <property name="org.apache.manifoldcf.perf" value="WARN"/>
  <property name="org.apache.manifoldcf.agents" value="WARN"/>
  <property name="org.apache.manifoldcf.ingest" value="WARN"/>
  <property name="org.apache.manifoldcf.api" value="WARN"/>
  <property name="org.apache.manifoldcf.threads" value="WARN"/>
  <property name="org.apache.manifoldcf.jobs" value="WARN"/>
  <property name="org.apache.manifoldcf.connectors" value="INFO"/>
  <property name="org.apache.manifoldcf.hopcount" value="WARN"/>
  <property name="org.apache.manifoldcf.scheduling" value="WARN"/>

</configuration>

Reply via email to