Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 214DFC3C4 for ; Fri, 19 Jul 2013 14:26:53 +0000 (UTC) Received: (qmail 11156 invoked by uid 500); 19 Jul 2013 14:26:52 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 8993 invoked by uid 500); 19 Jul 2013 14:26:49 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 8029 invoked by uid 99); 19 Jul 2013 14:26:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Jul 2013 14:26:48 +0000 Date: Fri, 19 Jul 2013 14:26:48 +0000 (UTC) From: "Opher Shachar (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-2381) The shell log:set command not as documented MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2381?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13713700#comment-13713700 ] Opher Shachar commented on KARAF-2381: -------------------------------------- Hi Freeman, I downloaded the latest SNAPSHOT and tested - it's fixed, thanks. Still, I now see another _undocumented_ behavior:{code} karaf@root> info Karaf Karaf version 2.3.3-SNAPSHOT Karaf home C:\apache-karaf-2.3.3-SNAPSHOT Karaf base C:\apache-karaf-2.3.3-SNAPSHOT OSGi Framework org.apache.felix.framework - 4.0.3 ... karaf@root> log:get ALL ROOT: INFO org.apache.sshd.server.channel.ChannelSession: INFO karaf@root> log:set DEBUG karaf@root> cat etc/org.ops4j.pax.logging.cfg|grep rootLogger log4j.rootLogger=INFO, out, osgi:* karaf@root> config:edit org.ops4j.pax.logging karaf@root> config:update karaf@root> cat etc/org.ops4j.pax.logging.cfg|grep rootLogger log4j.rootLogger = DEBUG, out, osgi:* {code} So perhaps it's worth mentioning in the docs that issuing *{{config:}}* commands on *org.ops4j.pax.logging* will also *_persist_* {{log:set}} changes. Cheers, Opher. > The shell log:set command not as documented > ------------------------------------------- > > Key: KARAF-2381 > URL: https://issues.apache.org/jira/browse/KARAF-2381 > Project: Karaf > Issue Type: Bug > Components: karaf-shell > Affects Versions: 2.3.1 > Environment: Windows 7 + JDK7, RedHat 5 Linux + JDK6 > Reporter: Opher Shachar > Assignee: Freeman Fang > Fix For: 2.3.3, 2.4.0, 3.0.0 > > > Running the shell's *log:set _LogLevel_ _PackageName_* command makes the change *persistent* in contrary to the [documentation|http://repo1.maven.org/maven2/org/apache/karaf/manual/2.3.1/manual-2.3.1.html#ConsoleLogCommands]. > On the flip side *log:set _DEFAULT_ _PackageName_* is _not_ persisted. > So, the *log:set* command should either: > * make *log:set _DEFAULT_ _PackageName_* persisted (and fix the documentation), or > * make *log:set _LogLevel_ _PackageName_* _not_ persistent (as documented). -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira