Got it working :) and the threads have ids! can remove my hack. Thought, I think it would be nice if the sample app property.xml file had all the loggers on at warn level. I also think we should modify the logging.ini file to contain, the main diff is file spanning and printing out the ids. Want me to make a patch?

log4j.rootLogger=DEBUG, MAIN
log4j.appender.MAIN=org.apache.log4j.RollingFileAppender
log4j.appender.MAIN.File=logs/manifoldcf.log
log4j.appender.MAIN.MaxFileSize=10000KB
log4j.appender.MAIN.MaxBackupIndex=10
log4j.appender.MAIN.layout=org.apache.log4j.PatternLayout
log4j.appender.MAIN.layout.ConversionPattern=%d %5p [%t] (%F:%L) - %m%n


On Tue, 24 May 2011 15:20:13 -0400, Karl Wright <[email protected]> wrote:
The rootLogger in the .ini file may be set to DEBUG, but the
properties.xml loggers explicitly control each subsystem, so those win
(for subsystems).

Karl


On Tue, May 24, 2011 at 3:17 PM,  <[email protected]> wrote:
So then not only I can control the logging from the logging.ini file, I can control it via the property.  Meaning, if the property is set to WARN, but
the ini file says DEBUG for the appender, all I get is WARN?

Here is what I have in my .ini file:

#Two appenders defined, one for a file log (MAIN) and the other to standard
out (STDOUT)
log4j.rootLogger=DEBUG, MAIN, STDOUT
log4j.appender.MAIN=org.apache.log4j.RollingFileAppender
log4j.appender.MAIN.File=logs/manifoldcf.log
log4j.appender.MAIN.MaxFileSize=10000KB
log4j.appender.MAIN.MaxBackupIndex=10
log4j.appender.MAIN.layout=org.apache.log4j.PatternLayout
log4j.appender.MAIN.layout.ConversionPattern=%d %5p [%t] (%F:%L) - %m%n

log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout
log4j.appender.STDOUT.layout.ConversionPattern=%d %5p [%t] (%F:%L) - %m%n


On Tue, 24 May 2011 15:10:16 -0400, Karl Wright <[email protected]> wrote:

<property name="org.apache.manifoldcf.db" value="DEBUG"/>
 <property name="org.apache.manifoldcf.connectors" value="DEBUG"/>

Karl

On Tue, May 24, 2011 at 3:08 PM,  <[email protected]> wrote:

What is the properties.xml line to turn on logging say for connectors and db.  Is it the following?  Do you say value = true or enabled or on?

<property name="org.apache.manifoldcf.db" value="true"/>
<property name="org.apache.manifoldcf.connectors" value="true"/>

Thanks,
Farzad.




Reply via email to