You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/05/30 15:07:12 UTC

[jira] [Commented] (KARAF-4546) Support embedding decanter into spring boot apps

    [ https://issues.apache.org/jira/browse/KARAF-4546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306749#comment-15306749 ] 

ASF subversion and git services commented on KARAF-4546:
--------------------------------------------------------

Commit 8801a3bcefeb8dac9f07e7ab16de98eecb736720 in karaf-decanter's branch refs/heads/master from [~chris@die-schneider.net]
[ https://git-wip-us.apache.org/repos/asf?p=karaf-decanter.git;h=8801a3b ]

[KARAF-4546] initial Spring boot support


> Support embedding decanter into spring boot apps
> ------------------------------------------------
>
>                 Key: KARAF-4546
>                 URL: https://issues.apache.org/jira/browse/KARAF-4546
>             Project: Karaf
>          Issue Type: New Feature
>          Components: decanter
>    Affects Versions: decanter-1.1.0
>            Reporter: Christian Schneider
>            Assignee: Christian Schneider
>             Fix For: decanter-1.1.1
>
>
> I just did a POC to use decanter as a distributed logging system for spring boot applications.
> My first approach was to use the log4j socket appender to log into a local (but separate process) decanter-agent that then forwards to kafka.
> A central decanter server would then pick up the logs and store them into ES. The disadvantage was that each node needs a local decanter-agent which makes the packaging for the cloud more difficult.
> So I looked into a way to embed decanter into spring boot and found felix connect. It allows to pick some bundles from the normal classpath and start them in a partial OSGi container.
> It seems to be good enough to nicely host decanter and the kafka appender. I created a custom logback appender class for spring boot that forwards all logs into the embedded decanter instance.
> To make it easy to use I packaged this as a spring boot starter. So people only have to add the dependency and configure their logging to use the new decanter appender.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)