You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Mohan Kumar Pandian ( Tech - EA)" <mo...@flipkart.com> on 2016/07/29 12:01:21 UTC

Java Servlet request log using log4j2

Hi all,

Logback provides logback-access.jar which brings in an implementation for
jetty's RequestLog that generates access logs using logback implementation.

Is there a similar support in log4j2? I couldn't find any such stuff in
log4j-web. If there is no out of box support for this on log4j2, any
pointers on customizing and generating access log in servlet container
using log4j2 will help.

Regards,
Mohan.P

Re: Java Servlet request log using log4j2

Posted by "Mohan Kumar Pandian ( Tech - EA)" <mo...@flipkart.com>.
Thanks Matt, filed one - https://issues.apache.org/jira/browse/LOG4J2-1492

Regards,
Mohan.P

On Sun, Jul 31, 2016 at 10:54 PM, Matt Sicker <bo...@gmail.com> wrote:

> You can add a feature request here:
> https://issues.apache.org/jira/browse/LOG4J2
>
> Otherwise, the request kind of gets lost in the mailing list archives over
> time.
>
> On 31 July 2016 at 12:21, Mohan Kumar Pandian ( Tech - EA) <
> mohan.pandian@flipkart.com> wrote:
>
> > @Gary,
> > Yes that would help.
> >
> > @Matt
> > How can I add a jira issue? If there is no active feature request, I can
> > raise one.
> >
> > Regards,
> > Mohan.P
> >
> > On Sat, Jul 30, 2016 at 7:35 AM, Matt Sicker <bo...@gmail.com> wrote:
> >
> > > I thought I made a feature request for this before, but I can't find
> it.
> > > Add a jira issue?
> > >
> > > On 29 July 2016 at 11:56, Gary Gregory <ga...@gmail.com> wrote:
> > >
> > > > What a coincidence, I was just looking at that yesterday!
> > > >
> > > > Maybe this is something we can do for 2.7 in a log4j-jetty module,
> I'm
> > > not
> > > > sure.
> > > >
> > > > Gary
> > > >
> > > > On Fri, Jul 29, 2016 at 5:01 AM, Mohan Kumar Pandian ( Tech - EA) <
> > > > mohan.pandian@flipkart.com> wrote:
> > > >
> > > > > Hi all,
> > > > >
> > > > > Logback provides logback-access.jar which brings in an
> implementation
> > > for
> > > > > jetty's RequestLog that generates access logs using logback
> > > > implementation.
> > > > >
> > > > > Is there a similar support in log4j2? I couldn't find any such
> stuff
> > in
> > > > > log4j-web. If there is no out of box support for this on log4j2,
> any
> > > > > pointers on customizing and generating access log in servlet
> > container
> > > > > using log4j2 will help.
> > > > >
> > > > > Regards,
> > > > > Mohan.P
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > > > Java Persistence with Hibernate, Second Edition
> > > > <http://www.manning.com/bauer3/>
> > > > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> > > > Spring Batch in Action <http://www.manning.com/templier/>
> > > > Blog: http://garygregory.wordpress.com
> > > > Home: http://garygregory.com/
> > > > Tweet! http://twitter.com/GaryGregory
> > > >
> > >
> > >
> > >
> > > --
> > > Matt Sicker <bo...@gmail.com>
> > >
> >
>
>
>
> --
> Matt Sicker <bo...@gmail.com>
>

Re: Java Servlet request log using log4j2

Posted by Matt Sicker <bo...@gmail.com>.
You can add a feature request here:
https://issues.apache.org/jira/browse/LOG4J2

Otherwise, the request kind of gets lost in the mailing list archives over
time.

On 31 July 2016 at 12:21, Mohan Kumar Pandian ( Tech - EA) <
mohan.pandian@flipkart.com> wrote:

> @Gary,
> Yes that would help.
>
> @Matt
> How can I add a jira issue? If there is no active feature request, I can
> raise one.
>
> Regards,
> Mohan.P
>
> On Sat, Jul 30, 2016 at 7:35 AM, Matt Sicker <bo...@gmail.com> wrote:
>
> > I thought I made a feature request for this before, but I can't find it.
> > Add a jira issue?
> >
> > On 29 July 2016 at 11:56, Gary Gregory <ga...@gmail.com> wrote:
> >
> > > What a coincidence, I was just looking at that yesterday!
> > >
> > > Maybe this is something we can do for 2.7 in a log4j-jetty module, I'm
> > not
> > > sure.
> > >
> > > Gary
> > >
> > > On Fri, Jul 29, 2016 at 5:01 AM, Mohan Kumar Pandian ( Tech - EA) <
> > > mohan.pandian@flipkart.com> wrote:
> > >
> > > > Hi all,
> > > >
> > > > Logback provides logback-access.jar which brings in an implementation
> > for
> > > > jetty's RequestLog that generates access logs using logback
> > > implementation.
> > > >
> > > > Is there a similar support in log4j2? I couldn't find any such stuff
> in
> > > > log4j-web. If there is no out of box support for this on log4j2, any
> > > > pointers on customizing and generating access log in servlet
> container
> > > > using log4j2 will help.
> > > >
> > > > Regards,
> > > > Mohan.P
> > > >
> > >
> > >
> > >
> > > --
> > > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > > Java Persistence with Hibernate, Second Edition
> > > <http://www.manning.com/bauer3/>
> > > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> > > Spring Batch in Action <http://www.manning.com/templier/>
> > > Blog: http://garygregory.wordpress.com
> > > Home: http://garygregory.com/
> > > Tweet! http://twitter.com/GaryGregory
> > >
> >
> >
> >
> > --
> > Matt Sicker <bo...@gmail.com>
> >
>



-- 
Matt Sicker <bo...@gmail.com>

Re: Java Servlet request log using log4j2

Posted by "Mohan Kumar Pandian ( Tech - EA)" <mo...@flipkart.com>.
@Gary,
Yes that would help.

@Matt
How can I add a jira issue? If there is no active feature request, I can
raise one.

Regards,
Mohan.P

On Sat, Jul 30, 2016 at 7:35 AM, Matt Sicker <bo...@gmail.com> wrote:

> I thought I made a feature request for this before, but I can't find it.
> Add a jira issue?
>
> On 29 July 2016 at 11:56, Gary Gregory <ga...@gmail.com> wrote:
>
> > What a coincidence, I was just looking at that yesterday!
> >
> > Maybe this is something we can do for 2.7 in a log4j-jetty module, I'm
> not
> > sure.
> >
> > Gary
> >
> > On Fri, Jul 29, 2016 at 5:01 AM, Mohan Kumar Pandian ( Tech - EA) <
> > mohan.pandian@flipkart.com> wrote:
> >
> > > Hi all,
> > >
> > > Logback provides logback-access.jar which brings in an implementation
> for
> > > jetty's RequestLog that generates access logs using logback
> > implementation.
> > >
> > > Is there a similar support in log4j2? I couldn't find any such stuff in
> > > log4j-web. If there is no out of box support for this on log4j2, any
> > > pointers on customizing and generating access log in servlet container
> > > using log4j2 will help.
> > >
> > > Regards,
> > > Mohan.P
> > >
> >
> >
> >
> > --
> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > Java Persistence with Hibernate, Second Edition
> > <http://www.manning.com/bauer3/>
> > JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> > Spring Batch in Action <http://www.manning.com/templier/>
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
> >
>
>
>
> --
> Matt Sicker <bo...@gmail.com>
>

Re: Java Servlet request log using log4j2

Posted by Matt Sicker <bo...@gmail.com>.
I thought I made a feature request for this before, but I can't find it.
Add a jira issue?

On 29 July 2016 at 11:56, Gary Gregory <ga...@gmail.com> wrote:

> What a coincidence, I was just looking at that yesterday!
>
> Maybe this is something we can do for 2.7 in a log4j-jetty module, I'm not
> sure.
>
> Gary
>
> On Fri, Jul 29, 2016 at 5:01 AM, Mohan Kumar Pandian ( Tech - EA) <
> mohan.pandian@flipkart.com> wrote:
>
> > Hi all,
> >
> > Logback provides logback-access.jar which brings in an implementation for
> > jetty's RequestLog that generates access logs using logback
> implementation.
> >
> > Is there a similar support in log4j2? I couldn't find any such stuff in
> > log4j-web. If there is no out of box support for this on log4j2, any
> > pointers on customizing and generating access log in servlet container
> > using log4j2 will help.
> >
> > Regards,
> > Mohan.P
> >
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
Matt Sicker <bo...@gmail.com>

Re: Java Servlet request log using log4j2

Posted by Gary Gregory <ga...@gmail.com>.
What a coincidence, I was just looking at that yesterday!

Maybe this is something we can do for 2.7 in a log4j-jetty module, I'm not
sure.

Gary

On Fri, Jul 29, 2016 at 5:01 AM, Mohan Kumar Pandian ( Tech - EA) <
mohan.pandian@flipkart.com> wrote:

> Hi all,
>
> Logback provides logback-access.jar which brings in an implementation for
> jetty's RequestLog that generates access logs using logback implementation.
>
> Is there a similar support in log4j2? I couldn't find any such stuff in
> log4j-web. If there is no out of box support for this on log4j2, any
> pointers on customizing and generating access log in servlet container
> using log4j2 will help.
>
> Regards,
> Mohan.P
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory