You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Bill Bell (JIRA)" <ji...@apache.org> on 2011/07/11 06:21:59 UTC

[jira] [Issue Comment Edited] (SOLR-2644) DIH handler - when using threads=2 the default logging is set too high

    [ https://issues.apache.org/jira/browse/SOLR-2644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062849#comment-13062849 ] 

Bill Bell edited comment on SOLR-2644 at 7/11/11 4:20 AM:
----------------------------------------------------------

Example:

Jul 10, 2011 10:17:54 PM org.apache.solr.handler.dataimport.ThreadedEntityProcessorWrapper nextRow
INFO: arow : {id=622, priority=1, prof_type=3, user_query=Naturopath}
Jul 10, 2011 10:17:54 PM org.apache.solr.handler.dataimport.DocBuilder$EntityRunner runAThread
INFO: a row on docrootSolrInputDocument[{id=id(1.0)={622}, priority=priority(1.0)={1}, prof_type=prof_type(1.0)={3}, user_query=user_query(1.0)={Naturopath}}]

logging.properties:

{code}
# Default global logging level:
.level=INFO

# Write to a file:
handlers=java.util.logging.FileHandler

# Write log messages in XML format (SimpleFormatter or XMLFormatter)
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter

# Log to the current working directory, with log files named solrxxx.log
java.util.logging.FileHandler.pattern=C:/solr/jetty-6.1.25/jetty-6.1.25/solr/logs/Solr%u.log.txt

# Limiting size of output file in bytes: 1GB
java.util.logging.FileHandler.limit=1024000000

# Number of output files to cycle through, by appending an 
# integer to the base file name: (faster performance when set to > 1)
java.util.logging.FileHandler.count=1

java.util.logging.FileHandler.append=1

#org.apache.solr.handler.dataimport.DocBuilder.level = SEVERE
#org.apache.solr.handler.dataimport.ThreadedEntityProcessorWrapper.level = SEVERE
{code}




      was (Author: billnbell):
    Example:

Jul 10, 2011 10:17:54 PM org.apache.solr.handler.dataimport.ThreadedEntityProcessorWrapper nextRow
INFO: arow : {id=622, priority=1, prof_type=3, user_query=Naturopath}
Jul 10, 2011 10:17:54 PM org.apache.solr.handler.dataimport.DocBuilder$EntityRunner runAThread
INFO: a row on docrootSolrInputDocument[{id=id(1.0)={622}, priority=priority(1.0)={1}, prof_type=prof_type(1.0)={3}, user_query=user_query(1.0)={Naturopath}}]

Logging.properties:

# Default global logging level:
.level=INFO

# Write to a file:
handlers=java.util.logging.FileHandler

# Write log messages in XML format (SimpleFormatter or XMLFormatter)
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter

# Log to the current working directory, with log files named solrxxx.log
java.util.logging.FileHandler.pattern=C:/solr/jetty-6.1.25/jetty-6.1.25/solr/logs/Solr%u.log.txt

# Limiting size of output file in bytes: 1GB
java.util.logging.FileHandler.limit=1024000000

# Number of output files to cycle through, by appending an 
# integer to the base file name: (faster performance when set to > 1)
java.util.logging.FileHandler.count=1

java.util.logging.FileHandler.append=1

#org.apache.solr.handler.dataimport.DocBuilder.level = SEVERE
#org.apache.solr.handler.dataimport.ThreadedEntityProcessorWrapper.level = SEVERE




  
> DIH handler - when using threads=2 the default logging is set too high
> ----------------------------------------------------------------------
>
>                 Key: SOLR-2644
>                 URL: https://issues.apache.org/jira/browse/SOLR-2644
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 3.3
>            Reporter: Bill Bell
>
> Setting threads parameter in DIH handler, every add outputs to the log in INFO level.
> The only current solution is to set the following in log4j.properties:
> log4j.rootCategory=INFO, logfile
> log4j.logger.org.apache.solr.handler.dataimport.DocBuilder=FATAL
> log4j.logger.org.apache.solr.handler.dataimport.ThreadedEntityProcessorWrapper=FATAL
> These 2 log messages need to be changed to > INFO.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org