You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Grzegorz Grzybek (JIRA)" <ji...@apache.org> on 2017/11/07 11:18:01 UTC

[jira] [Updated] (KARAF-3358) log:set and log:get ALL doesn't work with pax-logging-logback

     [ https://issues.apache.org/jira/browse/KARAF-3358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Grzegorz Grzybek updated KARAF-3358:
------------------------------------
    Component/s:     (was: karaf-tooling)

> log:set and log:get ALL doesn't work with pax-logging-logback
> -------------------------------------------------------------
>
>                 Key: KARAF-3358
>                 URL: https://issues.apache.org/jira/browse/KARAF-3358
>             Project: Karaf
>          Issue Type: New Feature
>          Components: karaf-shell
>    Affects Versions: 3.0.1
>         Environment: karaf distribution running on centos 6.5.x 
>            Reporter: Syed B. Ahmed
>
> On 11/12/2014 11:30 PM, Guillaume Nodet wrote:
> > The log:set command unfortunately assumes that the backend is pax-logging-service. 
> > This need to be enhanced to work with pax-logging-logback and pax-logging-log4jv2.
> > Could you please raise a JIRA ?
> >
> >      Seems the following is happenning:
> >      Though I have specified the logback.xml usage in etc/org.ops4j.pax.logging.cfg
> >     by setting
> >     org.ops4j.pax.logging.logback.config.file=<path>/logback.xml
> >
> >     what I see is that when I set a log level using karaf console
> >     ---
> >     log:set DEBUG
> >     --
> >
> >     an entry gets added to etc/org.ops4j.pax.logging.cfg as follows
> >     --
> >     log4j.rootLogger = DEBUG
> >     --
> >
> >     Though my appender is getting picked from logback.xml , the vaious logger default settings are being looked in etc/org.ops4j.pax.logging.cfg
> >     ? That too log4j ones?
> >
> >     thx
> >     -syed
> >
> >
> >
> >
> >     On 11/12/2014 10:20 PM, Srikanth Hugar wrote:
> >>     This should work, just to verity, can you create different appender and see whether it works. May be you can write in different file.
> >>     Just to me sure, all configurations is proper and its picking up the logback.xml file configurations.
> >>     Srikanth Hugar
> >>     www.gharki.com
> ------
> >>
> >>         Hi
> >>         Likely you just checked the title and replied. I have pax-logback-service working -- in my latest post -- I was asking about  how the loggers we define in logback.xml appear in karaf console
> >>         as for me just the root logger shows up i.e. using
> >>
> >>         log:get ALL
> >>
> >>         command --- I don't see other loggers that are defined in logback.xml.. Here is again my query
> >>         ---- start of question -----
> >>
> >>         One more question
> >>            I have a bunch of logger defines in logback.xml
> >>
> >>         e.g.
> >>
> >>
> >>           <logger name="io.netty" level="WARN"/>
> >>
> >>         I want them to appear when I do log:get ALL in karaf console.  But the only
> >>         thing I see in Karaf console is
> >>
> >>         ---
> >>         Logger | Level
> >>         --------------
> >>         ROOT   | DEBUG
> >>         ---
> >>
> >>         Where should I specify the other loggers to show up in Karaf console
> >>         --- end of question ----
> >>
> >>         thx
> >>         -syed
> >>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)