karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@apache.org>
Subject Re: [K4.1] Pax Logging: Sift appender
Date Wed, 18 Jan 2017 09:25:42 GMT
I just got it working with something like:

log4j2.appender.routing.type = Routing
log4j2.appender.routing.name = Routing
log4j2.appender.routing.routes.type = Routes
log4j2.appender.routing.routes.pattern = \$\$\\\{ctx:bundle.id\}
log4j2.appender.routing.routes.bundle.type = Route
log4j2.appender.routing.routes.bundle.appender.type =
RollingRandomAccessFile
log4j2.appender.routing.routes.bundle.appender.name = Bundle-\$\\\{ctx:
bundle.id\}
log4j2.appender.routing.routes.bundle.appender.fileName =
${karaf.data}/log/bundle-\$\\\{ctx:bundle.id\}.log
log4j2.appender.routing.routes.bundle.appender.filePattern =
${karaf.data}/log/bundle-\$\\\{ctx:bundle.id\}.log.%i
log4j2.appender.routing.routes.bundle.appender.append = true
log4j2.appender.routing.routes.bundle.appender.layout.type = PatternLayout
log4j2.appender.routing.routes.bundle.appender.layout.pattern =
${log4j2.pattern}
log4j2.appender.routing.routes.bundle.appender.policies.type = Policies
log4j2.appender.routing.routes.bundle.appender.policies.size.type =
SizeBasedTriggeringPolicy
log4j2.appender.routing.routes.bundle.appender.policies.size.size = 8MB


2017-01-17 23:31 GMT+01:00 mbelling <mbelly@gmail.com>:

> I am also interested in the sift/MDC configuration in Karaf 4.1.  Was there
> any more progress on this?
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.
> com/K4-1-Pax-Logging-Sift-appender-tp4049215p4049267.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message