manifoldcf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Karl Wright <>
Subject Re: Setting log levels in output connectors
Date Wed, 06 Nov 2013 22:15:55 GMT
Hi Mark,

You set the log levels for all of the global logging types in the
properties.xml file.  They default to "WARN".  So for instance you'd set:

<property name="org.apache.manifoldcf.connectors" value="DEBUG"/> to set
the connectors logger to DEBUG level.


On Wed, Nov 6, 2013 at 5:08 PM, Mark Libucha <> wrote:

> Hi,
> When I add a log message to an output connector, it only appears in
> manifold.log if it's level WARN or above.
> I put some debug into system and saw that in setLogLevels(),
> the loglevel was always null and then defaulting to WARN.
> Is there some sort of config file I need to update to get the other log
> levels working in output connectors?
> Note that I have changed the root logger in logging.ini to DEBUG, but this
> is a separate issue. At least I think it is. Making that change causes the
> repository connectors to output at DEBUG level but not the output
> connectors.
> logging.ini looks like this:
> log4j.appender.MAIN.File=logs/manifoldcf.log
> log4j.rootLogger=DEBUG, MAIN
> log4j.appender.MAIN=org.apache.log4j.RollingFileAppender
> log4j.appender.MAIN.layout=org.apache.log4j.PatternLayout
> log4j.appender.MAIN.layout.ConversionPattern=%5p %d{ISO8601} (%t) - %m%n
> And my code looks like this:
>"connectors info");
>"agents info");
>"ingest info");
>       Logging.connectors.warn("connectors warn");
> Only the last of the 4 makes it to the manifoldcf.log.
> Thanks,
> Mark

View raw message