Return-Path: Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: (qmail 80018 invoked from network); 6 Feb 2009 17:36:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Feb 2009 17:36:11 -0000 Received: (qmail 45034 invoked by uid 500); 6 Feb 2009 17:36:06 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 45009 invoked by uid 500); 6 Feb 2009 17:36:06 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 44998 invoked by uid 99); 6 Feb 2009 17:36:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 09:36:06 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2009 17:35:59 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LVUc5-0006YV-Oc for solr-user@lucene.apache.org; Fri, 06 Feb 2009 09:35:37 -0800 Message-ID: <21876778.post@talk.nabble.com> Date: Fri, 6 Feb 2009 09:35:37 -0800 (PST) From: Marc Sturlese To: solr-user@lucene.apache.org Subject: Re: Fwd: Separate error logs In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: marc.sturlese@gmail.com References: X-Virus-Checked: Checked by ClamAV on apache.org Hey James, Your log use case remains me to mine... I wanted to use different log files fore different cores... for the moment there's no way to separate logs in different files (as far as I know). I sorted it using log4j. What I do is send the log data to the linux syslog (using syslog appender). Once the data is there I just coded some scripts to send it wherever I want. You could send your data to syslog and parse that file... and depending on if you find the message TRACE, ERROR, DEBUG... just send that lines to the files you choose. This worked for me (not 100% coz there are log messages without the name of the core) to separate logs depending on the core name without doing any hack. In your case would work even better coz you always have the log level in the message. If someone knows any better way to do that please let me know... James Brady-3 wrote: > > OK, so java.util.logging has no way of sending error messages to a > separate > log without writing your own Handler/Filter code. > If we just skip over the absurdity of that, and the rage it makes me feel, > what are my options here? What I'm looking for is for all records to go to > one file, and records of a ERROR level and above to go to a separate log. > > Can I write my own Handlers/Filters, drop them on Jetty's classpath and > refer to them in my logging.properties? I.e. without rebuilding the whole > WAR, with my files added? > > Is Solr 1.4 (and its nice SLF4J logging) in a state ready for intensive > production usage? > > Thanks! > James > > ---------- Forwarded message ---------- > From: James Brady > Date: 2009/1/30 > Subject: Re: Separate error logs > To: solr-user@lucene.apache.org > > > Oh... I should really have found that myself :/ > Thank you! > > 2009/1/30 Ryan McKinley > > check: >> http://wiki.apache.org/solr/SolrLogging >> >> You configure whatever flavor logger to write error to a separate log >> >> >> >> On Jan 30, 2009, at 4:36 PM, James Brady wrote: >> >> Hi all,What's the best way for me to split Solr/Lucene error message off >>> to >>> a separate log? >>> >>> Thanks >>> James >>> >> >> > > -- View this message in context: http://www.nabble.com/Separate-error-logs-tp21756080p21876778.html Sent from the Solr - User mailing list archive at Nabble.com.