You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Martin Poeschl <mp...@marmot.at> on 2003/06/24 00:13:17 UTC
use commons-logging??
are there any plans to replace the logging stuff in ojb with the
commons-logging package??
martin
Re: use commons-logging??
Posted by Jakob Braeuchi <jb...@gmx.ch>.
hi martin,
switching to commons-logging is one of the tasks discussed for 2.0.
jakob
Martin Poeschl wrote:
> Thomas Mahler wrote:
>
>> Hi Martin,
>>
>> Some time ago commons-logging had no support for
>> if (logger.isLogging())
>> {
>> logger.debug(<expensive String concatenation here>);
>> }
>>
>> Which was useful to avoid expensive String constructions.
>
>
>
> this is what i found in the Log interface docs ;-)
>
> if (log.isDebugEnabled()) {
> ... do something expensive ...
> log.debug(theResult);
> }
>
>
>> We also need a Bootlogger that is able to log before *any* kind of
>> configuration took place.
>
>
> no problem ...
> look at
> http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/package-summary.html
>
> to see how the logging could be configured
>
> martin
>
>> Once these feature are added we could use commons-logging to replace
>> the existing stuff.
>>
>> cheers,
>> Thomas
>>
>>
>> Martin Poeschl wrote:
>>
>>> are there any plans to replace the logging stuff in ojb with the
>>> commons-logging package??
>>>
>>> martin
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>>> For additional commands, e-mail: ojb-dev-help@db.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-dev-help@db.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>
Re: use commons-logging??
Posted by Martin Poeschl <mp...@marmot.at>.
Thomas Mahler wrote:
> Hi Martin,
>
> Some time ago commons-logging had no support for
> if (logger.isLogging())
> {
> logger.debug(<expensive String concatenation here>);
> }
>
> Which was useful to avoid expensive String constructions.
this is what i found in the Log interface docs ;-)
if (log.isDebugEnabled()) {
... do something expensive ...
log.debug(theResult);
}
> We also need a Bootlogger that is able to log before *any* kind of
> configuration took place.
no problem ...
look at
http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/package-summary.html
to see how the logging could be configured
martin
> Once these feature are added we could use commons-logging to replace
> the existing stuff.
>
> cheers,
> Thomas
>
>
> Martin Poeschl wrote:
>
>> are there any plans to replace the logging stuff in ojb with the
>> commons-logging package??
>>
>> martin
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
>> For additional commands, e-mail: ojb-dev-help@db.apache.org
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>
Re: use commons-logging??
Posted by Thomas Mahler <th...@web.de>.
Hi Martin,
Some time ago commons-logging had no support for
if (logger.isLogging())
{
logger.debug(<expensive String concatenation here>);
}
Which was useful to avoid expensive String constructions.
We also need a Bootlogger that is able to log before *any* kind of
configuration took place.
Once these feature are added we could use commons-logging to replace the
existing stuff.
cheers,
Thomas
Martin Poeschl wrote:
> are there any plans to replace the logging stuff in ojb with the
> commons-logging package??
>
> martin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-dev-help@db.apache.org
>
>