Re: [JCS] Rework logging

2014-08-22 Thread Christian Grobmeier
Thanks Romain! On Thu, Aug 21, 2014 at 10:18 PM, Romain Manni-Bucau wrote: > I did ;) > > https://issues.apache.org/jira/browse/LOG4J2-658 > https://issues.apache.org/jira/browse/LOG4J2-788 > > didn't create one for PropertyConfigurator since it is surely > something to get rid of in near future

Re: [JCS] Rework logging

2014-08-21 Thread Romain Manni-Bucau
I did ;) https://issues.apache.org/jira/browse/LOG4J2-658 https://issues.apache.org/jira/browse/LOG4J2-788 didn't create one for PropertyConfigurator since it is surely something to get rid of in near future (i reused tomee log4j1 integration but we need to do a log4j2 integration) Romain Mann

Re: [JCS] Rework logging

2014-08-21 Thread Gary Gregory
On Thu, Aug 21, 2014 at 3:37 PM, Romain Manni-Bucau wrote: > 2014-08-21 21:15 GMT+02:00 Christian Grobmeier : > > On 20 Aug 2014, at 15:47, sebb wrote: > > > >> On 20 August 2014 14:37, Gary Gregory wrote: > >>> > >>> On Wed, Aug 20, 2014 at 9:28 AM, sebb wrote: > >>> > On 20 August 2014 1

Re: [JCS] Rework logging

2014-08-21 Thread Romain Manni-Bucau
I think I already said it but logging threads are endless in general. Only solutions making sense are: 1) have a little facade in the project 2) reuse a facade Issue with 2 is: which one? log4j2 seems the right one long term but I think it is too early since most of the time today it will not be

Re: [JCS] Rework logging

2014-08-21 Thread Christian Grobmeier
Romain, On Thu, Aug 21, 2014 at 9:37 PM, Romain Manni-Bucau wrote: > 2014-08-21 21:15 GMT+02:00 Christian Grobmeier : > Not adding a dependency for one line answer. > > For longer one: take tomee example: we have [logging], slf4j cause of > dependencies but as soon as we'll be able we'll drop the

Re: [JCS] Rework logging

2014-08-21 Thread Romain Manni-Bucau
2014-08-21 21:15 GMT+02:00 Christian Grobmeier : > On 20 Aug 2014, at 15:47, sebb wrote: > >> On 20 August 2014 14:37, Gary Gregory wrote: >>> >>> On Wed, Aug 20, 2014 at 9:28 AM, sebb wrote: >>> On 20 August 2014 14:04, Gary Gregory wrote: > > Moving discussion about logging from [

Re: [JCS] Rework logging

2014-08-21 Thread Christian Grobmeier
On 20 Aug 2014, at 15:47, sebb wrote: On 20 August 2014 14:37, Gary Gregory wrote: On Wed, Aug 20, 2014 at 9:28 AM, sebb wrote: On 20 August 2014 14:04, Gary Gregory wrote: Moving discussion about logging from [JCS-122] to this dev ML. Why not use Log4j 2, uses can redirect logging to ot

Re: [JCS] Rework logging

2014-08-21 Thread Christian Grobmeier
On 20 Aug 2014, at 19:35, Thomas Vandahl wrote: On 20.08.14 15:37, Gary Gregory wrote: On Wed, Aug 20, 2014 at 9:28 AM, sebb wrote: On 20 August 2014 14:04, Gary Gregory wrote: Moving discussion about logging from [JCS-122] to this dev ML. Why not use Log4j 2, uses can redirect logging to

Re: [JCS] Rework logging

2014-08-20 Thread Romain Manni-Bucau
I plan to dig into it before cause if i describe it I fear it will not be clear enough from log4j point of view - no words worth a patch ;). Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/

Re: [JCS] Rework logging

2014-08-20 Thread Gary Gregory
On Wed, Aug 20, 2014 at 11:37 AM, Romain Manni-Bucau wrote: > If take tomee stack as reference (to list a few: cxf, bval, owb, > openejb, tomcat). Noone is integrated with log4j2 API. So suppose > we move jcs to log4j2 then to integrate it with tomee we'll need to > shade it to remove log4j2

Re: [JCS] Rework logging

2014-08-20 Thread Romain Manni-Bucau
well think nobody doubt we need it to stay enterprise friendly Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-08-20 19:02 GMT+00:00 Gary Gregory : > On Wed, Aug 20, 2014

Re: [JCS] Rework logging

2014-08-20 Thread Gary Gregory
On Wed, Aug 20, 2014 at 2:59 PM, Romain Manni-Bucau wrote: > how do you handle levels and names then? > You dont't: "as simple as it gets". For more, you need a framework. Gary > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linke

Re: [JCS] Rework logging

2014-08-20 Thread Romain Manni-Bucau
how do you handle levels and names then? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2014-08-20 20:54 GMT+02:00 Gary Gregory : > On Wed, Aug 20, 2014 at 1:31 PM, Thomas Va

Re: [JCS] Rework logging

2014-08-20 Thread Gary Gregory
On Wed, Aug 20, 2014 at 1:31 PM, Thomas Vandahl wrote: > Hi folks, > > On 20.08.14 16:41, Romain Manni-Bucau wrote: > > trying to make it complete: > > > > Solutions are: > > 1) [logging] - think it is deprecated too > > 2) log4j2: not integrated at all with anything so a bit early but we > > *ne

Re: [JCS] Rework logging

2014-08-20 Thread Gary Gregory
On Wed, Aug 20, 2014 at 1:35 PM, Thomas Vandahl wrote: > On 20.08.14 15:37, Gary Gregory wrote: > > On Wed, Aug 20, 2014 at 9:28 AM, sebb wrote: > > > >> On 20 August 2014 14:04, Gary Gregory wrote: > >>> Moving discussion about logging from [JCS-122] to this dev ML. > >>> > >>> Why not use Log

Re: [JCS] Rework logging

2014-08-20 Thread Thomas Vandahl
On 20.08.14 15:37, Gary Gregory wrote: > On Wed, Aug 20, 2014 at 9:28 AM, sebb wrote: > >> On 20 August 2014 14:04, Gary Gregory wrote: >>> Moving discussion about logging from [JCS-122] to this dev ML. >>> >>> Why not use Log4j 2, uses can redirect logging to other frameworks if >>> needed. >>

Re: [JCS] Rework logging

2014-08-20 Thread Thomas Vandahl
Hi folks, On 20.08.14 16:41, Romain Manni-Bucau wrote: > trying to make it complete: > > Solutions are: > 1) [logging] - think it is deprecated too > 2) log4j2: not integrated at all with anything so a bit early but we > *need* to be compatible > 3) slf4j: broken in hierarchical classloaders > 4)

Re: [JCS] Rework logging

2014-08-20 Thread Romain Manni-Bucau
Yes, that's what I try to say more or less. TomEE doesn't change Tomcat that much (just allows to switch backend more easily hacking LogFactory to be concrete). Main issue is slf4j, log4j2 etc...doesn't have a setup which can work for app "de facto" as JUL has with the famous system properties set

Re: [JCS] Rework logging

2014-08-20 Thread Mark Thomas
On 20/08/2014 15:41, Romain Manni-Bucau wrote: > trying to make it complete: > > Solutions are: > 1) [logging] - think it is deprecated too > 2) log4j2: not integrated at all with anything so a bit early but we > *need* to be compatible > 3) slf4j: broken in hierarchical classloaders > 4) JUL: not

Re: [JCS] Rework logging

2014-08-20 Thread Romain Manni-Bucau
If take tomee stack as reference (to list a few: cxf, bval, owb, openejb, tomcat). Noone is integrated with log4j2 API. So suppose we move jcs to log4j2 then to integrate it with tomee we'll need to shade it to remove log4j2 dependency to ensure it works. Other issue is log4j2 is quite broken

Re: [JCS] Rework logging

2014-08-20 Thread Gary Gregory
On Wed, Aug 20, 2014 at 10:41 AM, Romain Manni-Bucau wrote: > trying to make it complete: > > Solutions are: > 1) [logging] - think it is deprecated too > 2) log4j2: not integrated at all with anything What do you mean by "integrated"? Log4j 2 provides a SLF4J bridge for example. Or do you mean

Re: [JCS] Rework logging

2014-08-20 Thread Gary Gregory
On Wed, Aug 20, 2014 at 10:17 AM, Yogesh Rao wrote: > Hi Gary, > > Not that i have anything against the log4j 2 guys :-) its just that log4j > 2 combines both the API and a implementation I am right now not sure of how > the segregation has been done between them i.e. during deployment when > us

Re: [JCS] Rework logging

2014-08-20 Thread Romain Manni-Bucau
Sorry but not sure to get how how it helps. That's not because it is used that it works for us. If you check deeper these libs are mostly in the same ecosystem and some of them supports other logging frameworks too. Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/

Re: [JCS] Rework logging

2014-08-20 Thread David Green
>From SLF4J homepage: Here is a non-exhaustive list of [Apache] projects known to depend on SLF4J: - Apache ActiveMQ - Apache Archiva - Apache Camel - Apache Directory

Re: [JCS] Rework logging

2014-08-20 Thread Romain Manni-Bucau
trying to make it complete: Solutions are: 1) [logging] - think it is deprecated too 2) log4j2: not integrated at all with anything so a bit early but we *need* to be compatible 3) slf4j: broken in hierarchical classloaders 4) JUL: not that friendly but prod ready in tomcat/tomee 5) custom logging

Re: [JCS] Rework logging

2014-08-20 Thread Petar Tahchiev
+1 for log4j2 2014-08-20 17:22 GMT+03:00 David Green : > +1 for slf4j > > > > On 20 August 2014 14:54, Yogesh Rao wrote: > > > Though i am not a member of the dev team :-) I would support a full > fledge > > facade implementation which doesn't provide any logging at all and let > the > > framew

Re: [JCS] Rework logging

2014-08-20 Thread David Green
+1 for slf4j On 20 August 2014 14:54, Yogesh Rao wrote: > Though i am not a member of the dev team :-) I would support a full fledge > facade implementation which doesn't provide any logging at all and let the > framework user decide which logging would he would like to bind it to. > SLF4J doe

Re: [JCS] Rework logging

2014-08-20 Thread Yogesh Rao
Hi Gary, Not that i have anything against the log4j 2 guys :-) its just that log4j 2 combines both the API and a implementation I am right now not sure of how the segregation has been done between them i.e. during deployment when using it in API mode does it have any dependency on other log4j2 ja

Re: [JCS] Rework logging

2014-08-20 Thread Gary Gregory
On Wed, Aug 20, 2014 at 9:54 AM, Yogesh Rao wrote: > Though i am not a member of the dev team :-) I would support a full fledge > facade implementation which doesn't provide any logging at all and let the > framework user decide which logging would he would like to bind it to. > SLF4J does that v

Re: [JCS] Rework logging

2014-08-20 Thread Gary Gregory
On Wed, Aug 20, 2014 at 9:47 AM, sebb wrote: > On 20 August 2014 14:37, Gary Gregory wrote: > > On Wed, Aug 20, 2014 at 9:28 AM, sebb wrote: > > > >> On 20 August 2014 14:04, Gary Gregory wrote: > >> > Moving discussion about logging from [JCS-122] to this dev ML. > >> > > >> > Why not use Log

Re: [JCS] Rework logging

2014-08-20 Thread Yogesh Rao
Though i am not a member of the dev team :-) I would support a full fledge facade implementation which doesn't provide any logging at all and let the framework user decide which logging would he would like to bind it to. SLF4J does that very neatly and its also easy, i am also aware it might turn d

Re: [JCS] Rework logging

2014-08-20 Thread sebb
On 20 August 2014 14:37, Gary Gregory wrote: > On Wed, Aug 20, 2014 at 9:28 AM, sebb wrote: > >> On 20 August 2014 14:04, Gary Gregory wrote: >> > Moving discussion about logging from [JCS-122] to this dev ML. >> > >> > Why not use Log4j 2, uses can redirect logging to other frameworks if >> > n

Re: [JCS] Rework logging

2014-08-20 Thread Gary Gregory
On Wed, Aug 20, 2014 at 9:28 AM, sebb wrote: > On 20 August 2014 14:04, Gary Gregory wrote: > > Moving discussion about logging from [JCS-122] to this dev ML. > > > > Why not use Log4j 2, uses can redirect logging to other frameworks if > > needed. > > Why not use Commons Logging, can redirect l

Re: [JCS] Rework logging

2014-08-20 Thread sebb
On 20 August 2014 14:04, Gary Gregory wrote: > Moving discussion about logging from [JCS-122] to this dev ML. > > Why not use Log4j 2, uses can redirect logging to other frameworks if > needed. Why not use Commons Logging, can redirect logging to other frameworks if needed? > Gary > > -- > E-Mai

[JCS] Rework logging

2014-08-20 Thread Gary Gregory
Moving discussion about logging from [JCS-122] to this dev ML. Why not use Log4j 2, uses can redirect logging to other frameworks if needed. Gary -- E-Mail: garydgreg...@gmail.com | ggreg...@apache.org Java Persistence with Hibernate, Second Edition JUnit in Act