lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject RE: Debug logging in Maven project
Date Tue, 10 Jan 2017 14:23:55 GMT
Ahá, i am stupid indeed. I forgot i also had to change slf4j-nop to slf4j-simple in my pom.xml..

    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-simple</artifactId>
      <version>1.7.21</version>
      <scope>test</scope>
    </dependency>

Sorry for the noise!

Markus

 
 
-----Original message-----
> From:Markus Jelsma <markus.jelsma@openindex.io>
> Sent: Tuesday 10th January 2017 15:10
> To: solr-user@lucene.apache.org
> Subject: RE: Debug logging in Maven project
> 
> Indeed, there were some changes recently but i also can't get logging to work on older
versions such as 6.0. 
> 
> Thanks,
> Markus
> 
>  
>  
> -----Original message-----
> > From:Pushkar Raste <pushkar.raste@gmail.com>
> > Sent: Tuesday 10th January 2017 14:53
> > To: solr-user@lucene.apache.org
> > Subject: Re: Debug logging in Maven project
> > 
> > Seems like you have enabled only console appender. I remember there was a
> > changed made to disable console appender if Solr is started in background
> > mode.
> > 
> > On Jan 10, 2017 5:55 AM, "Markus Jelsma" <markus.jelsma@openindex.io> wrote:
> > 
> > > Hello,
> > >
> > > I used to enable debug logging in my Maven project's unit tests by just
> > > setting log4j's global level to DEBUG, very handy, especially in debugging
> > > some Solr Cloud start up issues. Since a while, not sure to long, i don't
> > > seem to be able to get any logging at all. This project depends on 6.3.
> > > Anyone here that can tell me how to get something so simple but so helpful
> > > back to work?
> > >
> > > Many thanks,
> > > Markus
> > >
> > > $ cat src/test/resources/log4j.properties
> > > log4j.rootLogger=debug,info,stdout
> > > log4j.appender.stdout=org.apache.log4j.ConsoleAppender
> > > log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
> > > log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n
> > >
> > >
> > 
> 

Mime
View raw message