Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7D0E817ACE for ; Thu, 22 Jan 2015 02:24:47 +0000 (UTC) Received: (qmail 66519 invoked by uid 500); 22 Jan 2015 02:24:44 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 66452 invoked by uid 500); 22 Jan 2015 02:24:43 -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 66440 invoked by uid 99); 22 Jan 2015 02:24:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 02:24:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of apache@elyograg.org designates 166.70.79.219 as permitted sender) Received: from [166.70.79.219] (HELO frodo.elyograg.org) (166.70.79.219) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Jan 2015 02:24:38 +0000 Received: from localhost (localhost [127.0.0.1]) by frodo.elyograg.org (Postfix) with ESMTP id 2306C77A6 for ; Wed, 21 Jan 2015 19:24:18 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=elyograg.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=mail; t=1421893457; bh=vBRnxgj0Bb9dsl0kv1JpqYNTxzYmiwr9f7IuqK0CuR4=; b=MPX3IXvSWrPn 8ADNjv8H30bfaG6PkeUeA/f+CYxOE1cHSjG10ViXOK17uXFBH42P/gV4DZrX7Q8Q JOmKzppds91ZqpLfFOuTNYwAA2wzzlP11viCxe0PDEdZuXmlVfox2821AaPqKLTH E/OlT3+j5v+p34dPN22xYoBPTpMQ30Q= X-Virus-Scanned: Debian amavisd-new at frodo.elyograg.org Received: from frodo.elyograg.org ([127.0.0.1]) by localhost (frodo.elyograg.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id OGGWyvQcn+du for ; Wed, 21 Jan 2015 19:24:17 -0700 (MST) Received: from [192.168.1.102] (102.int.elyograg.org [192.168.1.102]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: elyograg@elyograg.org) by frodo.elyograg.org (Postfix) with ESMTPSA id C78D23E04 for ; Wed, 21 Jan 2015 19:24:17 -0700 (MST) Message-ID: <54C05F53.7040907@elyograg.org> Date: Wed, 21 Jan 2015 19:24:19 -0700 From: Shawn Heisey User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: solr-user@lucene.apache.org Subject: Re: permanently reducing logging levels for Solr References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On 1/21/2015 1:14 PM, Nemani, Raj wrote: > How can I reduce the logging levels to SEVERE that survives a Tomcat restart or a machine reboot in Solr. As you may know, I can change the logging levels from the logging page in admin console but those changes are not persistent across Tomcat server restart or machine reboot. > Following is the information about the Solr version from Info page in admin console. > > Solr Specification Version: 3.2.0 > Solr Implementation Version: 3.2.0 1129474 - rmuir - 2011-05-30 23:07:15 > Lucene Specification Version: 3.2.0 > Lucene Implementation Version: 3.2.0 1129474 - 2011-05-30 23:08:57 > > Please let me know if there is any other information that you may need. > > Thank you in advance for your help The Solr 3.x example uses java.util.logging, not the log4j that was introduced in the example for 4.3.0. Your other reply talks about log4j, which may not be the right framework for your install. I have no way to know what container or logging framework you're using. You will need to create a configuration file for whatever slf4j binding is in use on your install and most likely add a system property to your java commandline for startup so that your logging config gets used. If you're using java.util.logging, look for help with the java.util.logging.config.file system property. FYI -- if you reduce the logging level to WARN, a normally functioning Solr will log almost nothing, and you'll be able to see ERROR and WARN messages, which is extremely important for troubleshooting. Dropping the level to SEVERE is not necessary, and will make it impossible to tell what happened when something goes wrong. Thanks, Shawn