karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: [K4.1] Pax Logging: Sift appender
Date Wed, 18 Jan 2017 10:01:02 GMT
+1

It will do it.

Regards
JB⁣​

On Jan 18, 2017, 01:59, at 01:59, Oliver Lietz <apache@oliverlietz.de> wrote:
>On Wednesday 18 January 2017 10:25:42 Guillaume Nodet wrote:
>> 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
>
>Thanks, Guillaume. Can you add this appender configuration to Karaf
>4.1?
>
>O.
>
>> 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?
>> > 
>> > 
>> > 

Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message