[ https://issues.apache.org/jira/browse/SOLR-1145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723331#action_12723331 ]
Hoss Man commented on SOLR-1145: -------------------------------- Mark: all your points are valid. Do me one favor: instead of this... {code} <infoStreamFile>/path/to/infostream/file</infoStreamFile> {code} Make the config sequence something like... {code} <infoStream file="/path/to/infostream/file" /> {code} ...so we don't paint ourselves into a corner, and we can easily add logging based infostream option later if we want. (using a new 'logger="..."' xml attribute instead of 'file') On a related note, Having an explicit true/false (ie: on/off) option seems like a good idea so it's easy to control with a system property at startup.... {code} <infoStream file="/path/to/infostream/file">${solr.infostream:true}</infostream> {code} > Patch to set IndexWriter.defaultInfoStream from solr.xml > -------------------------------------------------------- > > Key: SOLR-1145 > URL: https://issues.apache.org/jira/browse/SOLR-1145 > Project: Solr > Issue Type: Improvement > Reporter: Chris Harris > Fix For: 1.4 > > Attachments: SOLR-1145.patch, SOLR-1145.patch, SOLR-1145.patch > > > Lucene IndexWriters use an infoStream to log detailed info about indexing > operations for debugging purpose. This patch is an extremely simple way to > allow logging this info to a file from within Solr: After applying the patch, > set the new "defaultInfoStreamFilePath" attribute of the solr element in > solr.xml to the path of the file where you'd like to save the logging > information. > Note that, in a multi-core setup, all cores will end up logging to the same > infoStream log file. This may not be desired. (But it does justify putting > the setting in solr.xml rather than solrconfig.xml.) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.