karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Opher Shachar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-2381) The shell log:set command not as documented
Date Fri, 19 Jul 2013 14:26:48 GMT

    [ 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 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
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:*
So perhaps it's worth mentioning in the docs that issuing *{{config:}}* commands on *org.ops4j.pax.logging*
will also *_persist_* {{log:set}} changes.

> 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

View raw message