manifoldcf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wright <daddy...@gmail.com>
Subject Re: Turning on Logging
Date Tue, 24 May 2011 19:20:13 GMT
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,  <hokie@farzad.net> 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 <daddywri@gmail.com> 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,  <hokie@farzad.net> 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.
>>>
>
>

Mime
View raw message