You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Alex Fodtchouk <al...@canada.com> on 2002/10/15 08:33:57 UTC

[Logging] How can I submit a concrete Log implementation (WLSLogger)?

I've implemented and tested WLSLogger with WebLogic
Server 6.1/7.0 - both server (JSP) and client (Java
app) side and would like to donate it to Apache.

Not particularly familiar with the submission process,
I'll have to ask likely a stupid question: Is it
appropriate to suggest adding a concrete Log
implementation based on commercial appserver product to
Commons Logging?

If yes, how do I do it - just following patch
submission guidelines? If not, I'd like to understand
what's wrong with that... Thanks a lot for attention.

Regards,
Alex

__________________________________________________________
Get your FREE personalized e-mail at http://www.canada.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Logging] How can I submit a concrete Log implementation (WLSLogger)?

Posted by Joe Germuska <Jo...@Germuska.com>.
>Not particularly familiar with the submission process,
>I'll have to ask likely a stupid question: Is it
>appropriate to suggest adding a concrete Log
>implementation based on commercial appserver product to
>Commons Logging?

I'm just a bystander, but if you ask me, there's no reason to add a 
lot of implementations to the logging package.  It's meant as an API, 
like JDBC is an API.

It may make more sense to create a Source Forge project for your code 
base and ask the Logging committers to add a link to it from the 
project pages.

Joe

-- 
--
* Joe Germuska    { joe@germuska.com }
"It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble.... As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records."
	--Sam Goody, 1956

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Logging] How can I submit a concrete Log implementation (WLSLogger)?

Posted by Ceki Gülcü <ce...@qos.ch>.
At 10:55 15.10.2002 -0700, you wrote:
>Ceki Gülcü wrote:
>
> > At 10:31 15.10.2002 -0700, Costin Manolache wrote:
> >>Maybe we can do it at a later stage or in a LogFactory2 - so
> >>the code would work even if discovery is not available/used.
> >>I think the current hardcoded discovery, even if duplicated and
> >>not as complete as commons-discovery - does work reasonably well.
> >>
> >>--
> >>Costin
> >
> > I happen to think that the commons-logging discovery method is too
> > smart for its own good but I am biased. :-)
>
>As long as it accepts that the user is smarter ( and accept explicit config
>overrides ) I think it's nice to be smart.

True, allowing the user to override automatic "smart" behavior is much
better than just assuming that the code always knows better. However,
forcing the user to manually choose an implementation would have been
both simpler and safer.

Logging is about identifying problems. It follows that the logging
component should be reliable, that means simplicity and predictability.
For the novice user, c-l may seem to behave at random.

Anyway, this is way off the WLSLogger topic.

>--
>Costin

--
Ceki

TCP implementations will follow a general principle of robustness: be
conservative in what you do, be liberal in what you accept from
others. -- Jon Postel, RFC 793



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Logging] How can I submit a concrete Log implementation (WLSLogger)?

Posted by Costin Manolache <cm...@yahoo.com>.
Ceki Gülcü wrote:

> At 10:31 15.10.2002 -0700, Costin Manolache wrote:
>>Maybe we can do it at a later stage or in a LogFactory2 - so
>>the code would work even if discovery is not available/used.
>>I think the current hardcoded discovery, even if duplicated and
>>not as complete as commons-discovery - does work reasonably well.
>>
>>--
>>Costin
> 
> I happen to think that the commons-logging discovery method is too
> smart for its own good but I am biased. :-)

As long as it accepts that the user is smarter ( and accept explicit config 
overrides ) I think it's nice to be smart.  

-- 
Costin



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Logging] How can I submit a concrete Log implementation (WLSLogger)?

Posted by Ceki Gülcü <ce...@qos.ch>.
At 10:31 15.10.2002 -0700, Costin Manolache wrote:
>Maybe we can do it at a later stage or in a LogFactory2 - so
>the code would work even if discovery is not available/used.
>I think the current hardcoded discovery, even if duplicated and
>not as complete as commons-discovery - does work reasonably well.
>
>--
>Costin

I happen to think that the commons-logging discovery method is too
smart for its own good but I am biased. :-)

--
Ceki

TCP implementations will follow a general principle of robustness: be
conservative in what you do, be liberal in what you accept from
others. -- Jon Postel, RFC 793



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Logging] How can I submit a concrete Log implementation (WLSLogger)?

Posted by Costin Manolache <cm...@yahoo.com>.
Richard Sitze wrote:

> I've been thinking along the same lines for a while now...
> Anyone adverse to me starting that process in commons-logging?
> 
> Specifically, build commons-logging as a set of components:
> 
>     commons-logging.jar           (as today?)

And marked 'deprecated' if possible ( as a jar ). 
As I said, it creates a lot of problems. The user should 
use the -api and one of the loggers.


BTW, I already made a proposal ( long ago ) about supporting
JMX ( not with a direct dependency, but via bean setters and
modeler ). That would mean the adapters will have some 
config methods that could be exposed via JMX. 
Even if this is not accepted, it should be possible to have
it developed in a separate package/jar.


>     commons-logging-api.jar       (JUST o.a.c.l.Log & o.a.c.l.LogFactory)
>     commons-logging-log4j.jar     [including appropriate
> META-INF/services/org.apache.commons.logging.Log/LogFactory]
>     commons-logging-logkit.jar    [including appropriate
> META-INF/services/org.apache.commons.logging.Log/LogFactory]
>     commons-logging-jdk14.jar     [including appropriate
> META-INF/services/org.apache.commons.logging.Log/LogFactory]
> 
> Of course, I'd like to begin the process of replacing LogFactory with the
> discovery code also.

I'm +1, but it should preserve backward compatibility.

Maybe we can do it at a later stage or in a LogFactory2 - so
the code would work even if discovery is not available/used.
I think the current hardcoded discovery, even if duplicated and
not as complete as commons-discovery - does work reasonably well.

--
Costin



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Logging] How can I submit a concrete Log implementation (WLSLogger)?

Posted by Richard Sitze <rs...@us.ibm.com>.
I've been thinking along the same lines for a while now...
Anyone adverse to me starting that process in commons-logging?

Specifically, build commons-logging as a set of components:

    commons-logging.jar           (as today?)

    commons-logging-api.jar       (JUST o.a.c.l.Log & o.a.c.l.LogFactory)
    commons-logging-log4j.jar     [including appropriate 
META-INF/services/org.apache.commons.logging.Log/LogFactory]
    commons-logging-logkit.jar    [including appropriate 
META-INF/services/org.apache.commons.logging.Log/LogFactory]
    commons-logging-jdk14.jar     [including appropriate 
META-INF/services/org.apache.commons.logging.Log/LogFactory]

Of course, I'd like to begin the process of replacing LogFactory with the 
discovery code also.
<ras>
 

*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development


IMO:

The best place for a common-logging adapter for a particular
logger is in that logger itself ( like JAXP adapters in parsers :-)

The second best place is in a standalone jar ( including 
the META-INF entries ) that would allways be placed in the
same loader as the logger. 

We could create a separate dir in commons/logging for this kind
of adapters - and eventually move the current adapters and leave
the commons-logging space with only the API ( and the fallback 
simple logger ), and deal with the compilation problems ( and
learn from ant - which is in the same situation )

The current solution of having the adapters in the same jar with
the API creates a lot of problems ( at least in tomcat - if 
c-l in in the main loader and different webapps use different loggers ).

Costin

Richard Sitze wrote:

> Just My Opinion/Thoughts:
> 
> There are other Apache/Jakarta projects that include pluggable
> implementations unique to a vendor (sun comes to mind quite often).
> Donating is fine, but keep in mind that when we cut a release we need to
> be able to build.  If there are build dependencies, that can be a 
problem.
>  Perhaps we can include source-code only components in future
> distributions?
> 
> <ras>
> 
> *******************************************
> Richard A. Sitze
> 
> 
> I've implemented and tested WLSLogger with WebLogic
> Server 6.1/7.0 - both server (JSP) and client (Java
> app) side and would like to donate it to Apache.
> 
> Not particularly familiar with the submission process,
> I'll have to ask likely a stupid question: Is it
> appropriate to suggest adding a concrete Log
> implementation based on commercial appserver product to
> Commons Logging?
> 
> If yes, how do I do it - just following patch
> submission guidelines? If not, I'd like to understand
> what's wrong with that... Thanks a lot for attention.
> 
> Regards,
> Alex
> 
> __________________________________________________________
> Get your FREE personalized e-mail at http://www.canada.com
> 
> --
> To unsubscribe, e-mail:   <
> mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:commons-dev-help@jakarta.apache.org>

-- 
Costin



--
To unsubscribe, e-mail:   <
mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <
mailto:commons-dev-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Logging] How can I submit a concrete Log implementation (WLSLogger)?

Posted by Costin Manolache <cm...@yahoo.com>.
IMO:

The best place for a common-logging adapter for a particular
logger is in that logger itself ( like JAXP adapters in parsers :-)

The second best place is in a standalone jar ( including 
the META-INF entries ) that would allways be placed in the
same loader as the logger. 

We could create a separate dir in commons/logging for this kind
of adapters - and eventually move the current adapters and leave
the commons-logging space with only the API ( and the fallback 
simple logger ), and deal with the compilation problems ( and
learn from ant - which is in the same situation )

The current solution of having the adapters in the same jar with
the API creates a lot of problems ( at least in tomcat - if 
c-l in in the main loader and different webapps use different loggers ).

Costin

Richard Sitze wrote:

> Just My Opinion/Thoughts:
> 
> There are other Apache/Jakarta projects that include pluggable
> implementations unique to a vendor (sun comes to mind quite often).
> Donating is fine, but keep in mind that when we cut a release we need to
> be able to build.  If there are build dependencies, that can be a problem.
>  Perhaps we can include source-code only components in future
> distributions?
> 
> <ras>
> 
> *******************************************
> Richard A. Sitze
> 
> 
> I've implemented and tested WLSLogger with WebLogic
> Server 6.1/7.0 - both server (JSP) and client (Java
> app) side and would like to donate it to Apache.
> 
> Not particularly familiar with the submission process,
> I'll have to ask likely a stupid question: Is it
> appropriate to suggest adding a concrete Log
> implementation based on commercial appserver product to
> Commons Logging?
> 
> If yes, how do I do it - just following patch
> submission guidelines? If not, I'd like to understand
> what's wrong with that... Thanks a lot for attention.
> 
> Regards,
> Alex
> 
> __________________________________________________________
> Get your FREE personalized e-mail at http://www.canada.com
> 
> --
> To unsubscribe, e-mail:   <
> mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <
> mailto:commons-dev-help@jakarta.apache.org>

-- 
Costin



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [Logging] How can I submit a concrete Log implementation (WLSLogger)?

Posted by Richard Sitze <rs...@us.ibm.com>.
Just My Opinion/Thoughts:

There are other Apache/Jakarta projects that include pluggable 
implementations unique to a vendor (sun comes to mind quite often). 
Donating is fine, but keep in mind that when we cut a release we need to 
be able to build.  If there are build dependencies, that can be a problem. 
 Perhaps we can include source-code only components in future 
distributions?

<ras>

*******************************************
Richard A. Sitze


I've implemented and tested WLSLogger with WebLogic
Server 6.1/7.0 - both server (JSP) and client (Java
app) side and would like to donate it to Apache.

Not particularly familiar with the submission process,
I'll have to ask likely a stupid question: Is it
appropriate to suggest adding a concrete Log
implementation based on commercial appserver product to
Commons Logging?

If yes, how do I do it - just following patch
submission guidelines? If not, I'd like to understand
what's wrong with that... Thanks a lot for attention.

Regards,
Alex

__________________________________________________________
Get your FREE personalized e-mail at http://www.canada.com

--
To unsubscribe, e-mail:   <
mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <
mailto:commons-dev-help@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>