manifoldcf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Libucha <mlibu...@gmail.com>
Subject Re: Setting log levels in output connectors
Date Wed, 06 Nov 2013 22:38:17 GMT
Ah, yes. Thanks!

Mark


On Wed, Nov 6, 2013 at 2:15 PM, Karl Wright <daddywri@gmail.com> wrote:

> 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.
>
> Karl
>
>
> On Wed, Nov 6, 2013 at 5:08 PM, Mark Libucha <mlibucha@gmail.com> 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 Logging.java 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:
>>
>>       Logging.connectors.info("connectors info");
>>       Logging.agents.info("agents info");
>>       Logging.ingest.info("ingest info");
>>       Logging.connectors.warn("connectors warn");
>>
>> Only the last of the 4 makes it to the manifoldcf.log.
>>
>> Thanks,
>>
>> Mark
>>
>>
>

Mime
View raw message