You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Matthias Leinweber <m....@datatactics.de> on 2022/03/23 14:48:38 UTC

Logback Support

Hello karafers,

i try to get logback working, and also log:display but LogServiceImpl does
not seem to support logback, right?

br
Matthias

RE: Logback Support

Posted by "Siano, Stephan" <st...@sap.com>.
Hi Matthias,

I am not sure what exactly you mean with LogServiceImpl does not support logback. If you build a custom distribution of karaf (with framework-logback instead of the default framework feature), logging via logback will work (also for the OSGi logging service), however the log:… commands will not work. This may or may not fulfill your requirements (I can do everything that could be done via the commands also by other means (e.g. setting log levels via editing the logback configuration file or setting the logback loggers via the MBean tree).

Best regards
Stephan

From: Matthias Leinweber <m....@datatactics.de>
Sent: Wednesday, 23 March 2022 15:49
To: user@karaf.apache.org
Subject: Logback Support

Hello karafers,

i try to get logback working, and also log:display but LogServiceImpl does not seem to support logback, right?

br
Matthias

Re: Logback Support

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,

It depends what you mean by "support".

If you talk about using logback package/logger in your bundles, it works.

If you talk about using logback style configuration in
etc/org.ops4j.pax.logging.cfg, it works but some commands/services
(like log:* commands) only support log4j style configuration.

Regards
JB

On Wed, Mar 23, 2022 at 3:48 PM Matthias Leinweber
<m....@datatactics.de> wrote:
>
> Hello karafers,
>
> i try to get logback working, and also log:display but LogServiceImpl does not seem to support logback, right?
>
> br
> Matthias