Desire for a Gitter channel?

2017-07-17 Thread Matt Sicker
https://gitter.im/apache/home

We can request a log4j Gitter channel for realtime chat. This could be
handy for quick questions and other things that waiting on Stack Overflow
or mailing list posts isn't as appropriate for.

This would be very different from the ASF Slack as it is open to everyone.

Also, I find chat rooms a bit easier to reply to while at work than
browsing Stack Overflow. ;)

-- 
Matt Sicker 


Re: Desire for a Gitter channel?

2017-07-17 Thread Chandra
+1 for gitter!

thanks,
Chandra

On 18 Jul 2017, 12:05 AM +0530, Matt Sicker , wrote:
> https://gitter.im/apache/home
>
> We can request a log4j Gitter channel for realtime chat. This could be
> handy for quick questions and other things that waiting on Stack Overflow
> or mailing list posts isn't as appropriate for.
>
> This would be very different from the ASF Slack as it is open to everyone.
>
> Also, I find chat rooms a bit easier to reply to while at work than
> browsing Stack Overflow. ;)
>
> --
> Matt Sicker 

Re: Desire for a Gitter channel?

2017-07-17 Thread Gary Gregory
So, like a private Slack? Bah, why not, as long as we make sure to document
any and all decisions on the ML, it could be OK.

Gary

On Mon, Jul 17, 2017 at 11:35 AM, Matt Sicker  wrote:

> https://gitter.im/apache/home
>
> We can request a log4j Gitter channel for realtime chat. This could be
> handy for quick questions and other things that waiting on Stack Overflow
> or mailing list posts isn't as appropriate for.
>
> This would be very different from the ASF Slack as it is open to everyone.
>
> Also, I find chat rooms a bit easier to reply to while at work than
> browsing Stack Overflow. ;)
>
> --
> Matt Sicker 
>


Re: Desire for a Gitter channel?

2017-07-17 Thread Tungathurthi, Chandra Kiran Bharadwaj
Hey actually, a slack channel would fit right in. Any specific reason to choose 
gitter over slack ? @matt

thanks & regards,
Chandra


From: Gary Gregory
Sent: Tuesday, 18 July, 07:08
Subject: Re: Desire for a Gitter channel?
To: Log4J Users List

So, like a private Slack? Bah, why not, as long as we make sure to document any 
and all decisions on the ML, it could be OK. Gary On Mon, Jul 17, 2017 at 11:35 
AM, Matt Sicker wrote: > https://gitter.im/apache/home > > We can request a 
log4j Gitter channel for realtime chat. This could be > handy for quick 
questions and other things that waiting on Stack Overflow > or mailing list 
posts isn't as appropriate for. > > This would be very different from the ASF 
Slack as it is open to everyone. > > Also, I find chat rooms a bit easier to 
reply to while at work than > browsing Stack Overflow. ;) > > -- > Matt Sicker >


Re: Desire for a Gitter channel?

2017-07-17 Thread Matt Sicker
Gitter is public. And Slack is a paid service (free version has a lot of
limits), so it's not very feasible for public chats without someone funding
it. Gitter, however, is free for all GitHub projects (and Gitlab too I
think?) and is even open source now that Gitlab owns them.

On 17 July 2017 at 21:13, Tungathurthi, Chandra Kiran Bharadwaj <
chandra.tungathur...@rwth-aachen.de> wrote:

> Hey actually, a slack channel would fit right in. Any specific reason to
> choose gitter over slack ? @matt
>
> thanks & regards,
> Chandra
>
>
> From: Gary Gregory
> Sent: Tuesday, 18 July, 07:08
> Subject: Re: Desire for a Gitter channel?
> To: Log4J Users List
>
> So, like a private Slack? Bah, why not, as long as we make sure to
> document any and all decisions on the ML, it could be OK. Gary On Mon, Jul
> 17, 2017 at 11:35 AM, Matt Sicker wrote: > https://gitter.im/apache/home
> > > We can request a log4j Gitter channel for realtime chat. This could be
> > handy for quick questions and other things that waiting on Stack Overflow
> > or mailing list posts isn't as appropriate for. > > This would be very
> different from the ASF Slack as it is open to everyone. > > Also, I find
> chat rooms a bit easier to reply to while at work than > browsing Stack
> Overflow. ;) > > -- > Matt Sicker >
>



-- 
Matt Sicker 


Custom plugins not getting applied in OSGi environment

2017-07-17 Thread Asma Zinneera Jabir
I have written a Log4j2 custom Converter plugin in OSGi environment and
have used log4j2 with ops4j-pax-logging. The custom field is tenantId and I
have referred to it in the log4j2.xml as %tenantId. When I run the program
the logs gets printed as {thread-name}enantId.

Plugin class

package com.test.logging.converters;

@Plugin(name = "TenantIdConverter", category = "Converter")
@ConverterKeys({"tenantId"})
public class TenantIdConverter extends LogEventPatternConverter {
public TenantIdConverter(String name, String style) {
super(name, style);
}

public static TenantIdConverter newInstance(String[] options) {
return new TenantIdConverter("tenantId", "tenantId");
}

@Override
public void format(LogEvent event, StringBuilder toAppendTo) {
toAppendTo.append(getTenantID());
}

public String getTenantID() {
String tenantId = "1234";
if (tenantId == null) {
tenantId = "[]";
}
return tenantId;
}
}

pom.xml


org.ops4j.pax.logging
pax-logging-api
1.10.1
provided


org.ops4j.pax.logging
pax-logging-log4j2
1.10.1


--


org.ops4j
maven-pax-plugin


org.apache.maven.plugins
maven-compiler-plugin
3.1


log4j-plugin-processor

compile

process-classes

only


org.apache.logging.log4j.core.config.plugins.processor.PluginProcessor






log4j2.xml










%-5p %d [%tenantId] %c: %m%n