You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2001/08/20 09:03:12 UTC

AW: LogKit - FileRotation Contribution

Hi,

attached is a simple version of a HierarchicalRotateStrategy (also the
name might not be perfect).
It can be initialized with an array of RotateStrategy objects. If the
isRotationNeeded() method is needed this array is queried until all
objects are processed or the first one responds with true.


Carsten 

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: cziegeler@sundn.de 
================================================================


> -----Ursprungliche Nachricht-----
> Von: giacomo [mailto:giacomo@apache.org]
> Gesendet: Freitag, 17. August 2001 19:51
> An: Avalon Development
> Betreff: Re: AW: LogKit - FileRotation
> 
> 
> On Fri, 17 Aug 2001, Peter Donald wrote:
> 
> > On Fri, 17 Aug 2001 18:58, Carsten Ziegeler wrote:
> > > I just looked at the new RotatingFileOutputLogTarget.
> > >
> > > I think there are some required features missing:
> > > 1. a setRotateStrategy() method
> > > 2. a setFilenameStrategy() method
> >
> > I was thinking of getting rid of all those methods and passing in the
> > strategys via the constructor. What do you think of that?
> 
> +1 for constructor approach, it would ease the LogTargetFactories I'm
> writing for the LogKitManagement as well as being consistent to the
> other LogTarget IIRC.
> 
> > > 3. a RotateStrategy which can combine more than one strategy. 
> We here use
> > >    in the first run the RotateStrategyByTime, however if 
> during a period
> > >    of time the log gets to big (RotateStrategyBySize) we rotate. So
> > >    you have a hierarchical rotate strategy.
> >
> > I like.
> 
> How to realize? Passing a array of strategies?
> 
> > > If you also think that these features are valuable, I can 
> implement them
> > > and contribute it.
> >
> > go for it ;)
> 
> +1 :)
> 
> Giacomo
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> 

Re: AW: LogKit - FileRotation Contribution

Posted by giacomo <gi...@apache.org>.
On Tue, 21 Aug 2001, Peter Donald wrote:

> On Tue, 21 Aug 2001 03:47, giacomo wrote:
> > On Mon, 20 Aug 2001, Peter Donald wrote:
> > > On Mon, 20 Aug 2001 20:47, Carsten Ziegeler wrote:
> > > > Yes, the first thought I had about the name was exactly
> > > > "AndRotateStrategy".
> > >
> > > Sounds good to me unless anyone else has any preferences?
> >
> > Well, it might be irritating but that Strategy runs like this:
> >
> >      Strategy1 || Strategy2
> > ie.
> >      size > 10M || (currentTime - last) > 24hours
> >
> > Isn't it? Shouldn't it be OrRotateStrategy?
>
> doh! Good point.
>
> OrRotateStrategy kinda works ... I think I prefer MultiRotateStrategy. Not
> sure.

:) CatchFirstStrategy

Giacomo

>
>
> >
> > Giacomo
> >
> > > > Should I repost the contribution with the new name?
> > >
> > > Naah - I will just rename locally ;)
> > >
> > > > Carsten
> > > >
> > > > > Peter Donald wrote:
> > > > >
> > > > > Hmmm. What about the names
> > > > >
> > > > > * MultiRotateStrategy  (multiple strategies)
> > > > > * AndRotateStrategy    (ands the results of multiple strategies)
> > > > >
> > > > > or something else ???
> > > > >
> > > > > On Mon, 20 Aug 2001 17:03, Carsten Ziegeler wrote:
> > > > > > Hi,
> > > > > >
> > > > > > attached is a simple version of a HierarchicalRotateStrategy (also
> > > > > > the name might not be perfect).
> > > > > > It can be initialized with an array of RotateStrategy objects. If
> > > > > > the isRotationNeeded() method is needed this array is queried until
> > > > > > all objects are processed or the first one responds with true.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: AW: LogKit - FileRotation Contribution

Posted by Peter Donald <do...@apache.org>.
On Tue, 21 Aug 2001 03:47, giacomo wrote:
> On Mon, 20 Aug 2001, Peter Donald wrote:
> > On Mon, 20 Aug 2001 20:47, Carsten Ziegeler wrote:
> > > Yes, the first thought I had about the name was exactly
> > > "AndRotateStrategy".
> >
> > Sounds good to me unless anyone else has any preferences?
>
> Well, it might be irritating but that Strategy runs like this:
>
>      Strategy1 || Strategy2
> ie.
>      size > 10M || (currentTime - last) > 24hours
>
> Isn't it? Shouldn't it be OrRotateStrategy?

doh! Good point. 

OrRotateStrategy kinda works ... I think I prefer MultiRotateStrategy. Not 
sure.


>
> Giacomo
>
> > > Should I repost the contribution with the new name?
> >
> > Naah - I will just rename locally ;)
> >
> > > Carsten
> > >
> > > > Peter Donald wrote:
> > > >
> > > > Hmmm. What about the names
> > > >
> > > > * MultiRotateStrategy  (multiple strategies)
> > > > * AndRotateStrategy    (ands the results of multiple strategies)
> > > >
> > > > or something else ???
> > > >
> > > > On Mon, 20 Aug 2001 17:03, Carsten Ziegeler wrote:
> > > > > Hi,
> > > > >
> > > > > attached is a simple version of a HierarchicalRotateStrategy (also
> > > > > the name might not be perfect).
> > > > > It can be initialized with an array of RotateStrategy objects. If
> > > > > the isRotationNeeded() method is needed this array is queried until
> > > > > all objects are processed or the first one responds with true.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

-- 
Cheers,

Pete

*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *
*-----------------------------------------------------*

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: AW: LogKit - FileRotation Contribution

Posted by giacomo <gi...@apache.org>.
On Mon, 20 Aug 2001, Peter Donald wrote:

> On Mon, 20 Aug 2001 20:47, Carsten Ziegeler wrote:
> > Yes, the first thought I had about the name was exactly
> > "AndRotateStrategy".
>
> Sounds good to me unless anyone else has any preferences?

Well, it might be irritating but that Strategy runs like this:

     Strategy1 || Strategy2
ie.
     size > 10M || (currentTime - last) > 24hours

Isn't it? Shouldn't it be OrRotateStrategy?

Giacomo

>
> > Should I repost the contribution with the new name?
>
> Naah - I will just rename locally ;)
>
> > Carsten
> >
> > > Peter Donald wrote:
> > >
> > > Hmmm. What about the names
> > >
> > > * MultiRotateStrategy  (multiple strategies)
> > > * AndRotateStrategy    (ands the results of multiple strategies)
> > >
> > > or something else ???
> > >
> > > On Mon, 20 Aug 2001 17:03, Carsten Ziegeler wrote:
> > > > Hi,
> > > >
> > > > attached is a simple version of a HierarchicalRotateStrategy (also the
> > > > name might not be perfect).
> > > > It can be initialized with an array of RotateStrategy objects. If the
> > > > isRotationNeeded() method is needed this array is queried until all
> > > > objects are processed or the first one responds with true.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: AW: LogKit - FileRotation Contribution

Posted by Peter Donald <do...@apache.org>.
On Mon, 20 Aug 2001 20:47, Carsten Ziegeler wrote:
> Yes, the first thought I had about the name was exactly
> "AndRotateStrategy".

Sounds good to me unless anyone else has any preferences?

> Should I repost the contribution with the new name?

Naah - I will just rename locally ;)

> Carsten
>
> > Peter Donald wrote:
> >
> > Hmmm. What about the names
> >
> > * MultiRotateStrategy  (multiple strategies)
> > * AndRotateStrategy    (ands the results of multiple strategies)
> >
> > or something else ???
> >
> > On Mon, 20 Aug 2001 17:03, Carsten Ziegeler wrote:
> > > Hi,
> > >
> > > attached is a simple version of a HierarchicalRotateStrategy (also the
> > > name might not be perfect).
> > > It can be initialized with an array of RotateStrategy objects. If the
> > > isRotationNeeded() method is needed this array is queried until all
> > > objects are processed or the first one responds with true.
-- 
Cheers,

Pete

*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *
*-----------------------------------------------------*

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: how to set configration data for DataSource?

Posted by Peter Donald <do...@apache.org>.
On Wed, 22 Aug 2001 13:14, umashanker wrote:
> I'm writing demo for DataSource block, which will get me JdbcConnection
> from the pool.
> I'm using
> "org.apache.avalon.cornerstone.services.datasource.DataSourceSelector" to
> get the DataSourceComponent from the excalibur package.
>
> But i'm finding it difficult to set the configration data for this block.
> Phoenix is throws exception at "DefaultSarDeployer".

Could you tell us what the exception is? It would be easier to diagnose the 
problem that way.

> I have gone through "Developing with Avalon" developer guide and Phoenix
> assemblers guide. still i'm not getting how this has to be done.Can any one
> please give me the sample configration data for the DataSource block. And
> explain how it will work?

I don't actually use it at this stage. Eung-ju could you describe it ... or 
even better javadoc it ? ;)

-- 
Cheers,

Pete

*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *
*-----------------------------------------------------*

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: how to set configration data for DataSource?

Posted by Eung-ju Park <co...@isoft.co.kr>.
Try like this:

assembly.xml
--------------
...
<block
class="org.apache.avalon.cornerstone.blocks.DefaultDataSourceSelector"
  name="datasources" />

config.xml
----------
<datasources>
  <data-sources>
    <data-source name="default1"
class="org.apache.avalon.excalibur.datasource.JdbcDataSource">
       <!-- configuration for JdbcDataSource -->
    </data-source>
    <data-source name="default2"
class="org.apache.avalon.excalibur.datasource.J2EEDataSource">
       <!-- configuration for J2EEDataSource -->
    </data-source>
    ...
  </data-sources>
</datasources>


----- Original Message -----
From: "umashanker" <um...@rics.co.jp>
To: "Avalon Development" <av...@jakarta.apache.org>
Sent: Wednesday, August 22, 2001 12:14 PM
Subject: how to set configration data for DataSource?


> I'm writing demo for DataSource block, which will get me JdbcConnection
from
> the pool.
> I'm using
> "org.apache.avalon.cornerstone.services.datasource.DataSourceSelector" to
> get the DataSourceComponent from the excalibur package.
>
> But i'm finding it difficult to set the configration data for this block.
> Phoenix is throws exception at "DefaultSarDeployer".
>
> I have gone through "Developing with Avalon" developer guide and Phoenix
> assemblers guide. still i'm not getting how this has to be done.Can any
one
> please give me the sample configration data for the DataSource block. And
> explain how it will work?
>
> regards,
>
> ---------------
> "Eung-ju Park" wrote:-
>
> > See org.apache.avalon.cornerstone.services.datasource.DataSourceSelector
> and
> >
org.apache.avalon.cornerstone.blocks.datasource.DefaultDataSourceSelector.
> > DataSourceSelector is ComponentSelector for
> > org.apache.avalon.excalibur.datasource.DataSourceComponent.
>
> ----------
> "umashanker"  wrote:
> > > I am new to Avalon,  and going through excalibur components and
> > cornerstone
> > > blocks.
> > >
> > > The demos which are given for phoenix container is working fine.
> > >
> > > All the service/blocks are using the ComponentManager-  to load the
> > > components.
> > >
> > > Is there any demo service/block which uses ComponentSelector?( for the
> > > DataSource block)
> > >
> > > if NO , how to create it?
> > >
> > > regards,
> > >
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


how to set configration data for DataSource?

Posted by umashanker <um...@rics.co.jp>.
I'm writing demo for DataSource block, which will get me JdbcConnection from
the pool.
I'm using
"org.apache.avalon.cornerstone.services.datasource.DataSourceSelector" to
get the DataSourceComponent from the excalibur package.

But i'm finding it difficult to set the configration data for this block.
Phoenix is throws exception at "DefaultSarDeployer".

I have gone through "Developing with Avalon" developer guide and Phoenix
assemblers guide. still i'm not getting how this has to be done.Can any one
please give me the sample configration data for the DataSource block. And
explain how it will work?

regards,

---------------
"Eung-ju Park" wrote:-

> See org.apache.avalon.cornerstone.services.datasource.DataSourceSelector
and
> org.apache.avalon.cornerstone.blocks.datasource.DefaultDataSourceSelector.
> DataSourceSelector is ComponentSelector for
> org.apache.avalon.excalibur.datasource.DataSourceComponent.

----------
"umashanker"  wrote:
> > I am new to Avalon,  and going through excalibur components and
> cornerstone
> > blocks.
> >
> > The demos which are given for phoenix container is working fine.
> >
> > All the service/blocks are using the ComponentManager-  to load the
> > components.
> >
> > Is there any demo service/block which uses ComponentSelector?( for the
> > DataSource block)
> >
> > if NO , how to create it?
> >
> > regards,
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>




---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: demo for ComponentSelector?

Posted by Eung-ju Park <co...@isoft.co.kr>.
See org.apache.avalon.cornerstone.services.datasource.DataSourceSelector and
org.apache.avalon.cornerstone.blocks.datasource.DefaultDataSourceSelector.
DataSourceSelector is ComponentSelector for
org.apache.avalon.excalibur.datasource.DataSourceComponent.

----- Original Message -----
From: "umashanker" <um...@rics.co.jp>
To: "Avalon Development" <av...@jakarta.apache.org>
Sent: Tuesday, August 21, 2001 2:50 PM
Subject: demo for ComponentSelector?


> I am new to Avalon,  and going through excalibur components and
cornerstone
> blocks.
>
> The demos which are given for phoenix container is working fine.
>
> All the service/blocks are using the ComponentManager-  to load the
> components.
>
> Is there any demo service/block which uses ComponentSelector?( for the
> DataSource block)
>
> if NO , how to create it?
>
> regards,
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


demo for ComponentSelector?

Posted by umashanker <um...@rics.co.jp>.
I am new to Avalon,  and going through excalibur components and cornerstone
blocks.

The demos which are given for phoenix container is working fine.

All the service/blocks are using the ComponentManager-  to load the
components.

Is there any demo service/block which uses ComponentSelector?( for the
DataSource block)

if NO , how to create it?

regards,





---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: AW: LogKit - FileRotation Contribution

Posted by Peter Donald <do...@apache.org>.
Added it in as OrRotateStrategy. Tah!

-- 
Cheers,

Pete

*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *
*-----------------------------------------------------*

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


AW: LogKit - FileRotation Contribution

Posted by Carsten Ziegeler <cz...@sundn.de>.
Yes, the first thought I had about the name was exactly
"AndRotateStrategy".

Should I repost the contribution with the new name?

Carsten

> Peter Donald wrote:
> 
> Hmmm. What about the names
> 
> * MultiRotateStrategy  (multiple strategies)
> * AndRotateStrategy    (ands the results of multiple strategies)
> 
> or something else ???
> 
> On Mon, 20 Aug 2001 17:03, Carsten Ziegeler wrote:
> > Hi,
> >
> > attached is a simple version of a HierarchicalRotateStrategy (also the
> > name might not be perfect).
> > It can be initialized with an array of RotateStrategy objects. If the
> > isRotationNeeded() method is needed this array is queried until all
> > objects are processed or the first one responds with true.
> >
> >
> > Carsten
> >
> > Open Source Group                        sunShine - b:Integrated
> > ================================================================
> > Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> > www.sundn.de                          mailto: cziegeler@sundn.de
> > ================================================================
> >
> > > -----Ursprungliche Nachricht-----
> > > Von: giacomo [mailto:giacomo@apache.org]
> > > Gesendet: Freitag, 17. August 2001 19:51
> > > An: Avalon Development
> > > Betreff: Re: AW: LogKit - FileRotation
> > >
> > > On Fri, 17 Aug 2001, Peter Donald wrote:
> > > > On Fri, 17 Aug 2001 18:58, Carsten Ziegeler wrote:
> > > > > I just looked at the new RotatingFileOutputLogTarget.
> > > > >
> > > > > I think there are some required features missing:
> > > > > 1. a setRotateStrategy() method
> > > > > 2. a setFilenameStrategy() method
> > > >
> > > > I was thinking of getting rid of all those methods and 
> passing in the
> > > > strategys via the constructor. What do you think of that?
> > >
> > > +1 for constructor approach, it would ease the LogTargetFactories I'm
> > > writing for the LogKitManagement as well as being consistent to the
> > > other LogTarget IIRC.
> > >
> > > > > 3. a RotateStrategy which can combine more than one strategy.
> > >
> > > We here use
> > >
> > > > >    in the first run the RotateStrategyByTime, however if
> > >
> > > during a period
> > >
> > > > >    of time the log gets to big (RotateStrategyBySize) we 
> rotate. So
> > > > >    you have a hierarchical rotate strategy.
> > > >
> > > > I like.
> > >
> > > How to realize? Passing a array of strategies?
> > >
> > > > > If you also think that these features are valuable, I can
> > >
> > > implement them
> > >
> > > > > and contribute it.
> > > >
> > > > go for it ;)
> > >
> > > +1 :)
> > >
> > > Giacomo
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> 
> ----------------------------------------
> Content-Type: application/x-zip-compressed; charset="us-ascii"; 
> name="HierarchicalRotateStrategy.zip"
> Content-Transfer-Encoding: base64
> Content-Description: 
> ----------------------------------------
> 
> ----------------------------------------
> Content-Type: text/plain; charset="us-ascii"; name="Attachment: 2"
> Content-Transfer-Encoding: 7bit
> Content-Description: 
> ----------------------------------------
> 
> -- 
> Cheers,
> 
> Pete
> 
> *-----------------------------------------------------*
> * "Faced with the choice between changing one's mind, *
> * and proving that there is no need to do so - almost *
> * everyone gets busy on the proof."                   *
> *              - John Kenneth Galbraith               *
> *-----------------------------------------------------*
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: avalon-dev-help@jakarta.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Re: AW: LogKit - FileRotation Contribution

Posted by Peter Donald <do...@apache.org>.
Hmmm. What about the names

* MultiRotateStrategy  (multiple strategies)
* AndRotateStrategy    (ands the results of multiple strategies)

or something else ???

On Mon, 20 Aug 2001 17:03, Carsten Ziegeler wrote:
> Hi,
>
> attached is a simple version of a HierarchicalRotateStrategy (also the
> name might not be perfect).
> It can be initialized with an array of RotateStrategy objects. If the
> isRotationNeeded() method is needed this array is queried until all
> objects are processed or the first one responds with true.
>
>
> Carsten
>
> Open Source Group                        sunShine - b:Integrated
> ================================================================
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.sundn.de                          mailto: cziegeler@sundn.de
> ================================================================
>
> > -----Ursprungliche Nachricht-----
> > Von: giacomo [mailto:giacomo@apache.org]
> > Gesendet: Freitag, 17. August 2001 19:51
> > An: Avalon Development
> > Betreff: Re: AW: LogKit - FileRotation
> >
> > On Fri, 17 Aug 2001, Peter Donald wrote:
> > > On Fri, 17 Aug 2001 18:58, Carsten Ziegeler wrote:
> > > > I just looked at the new RotatingFileOutputLogTarget.
> > > >
> > > > I think there are some required features missing:
> > > > 1. a setRotateStrategy() method
> > > > 2. a setFilenameStrategy() method
> > >
> > > I was thinking of getting rid of all those methods and passing in the
> > > strategys via the constructor. What do you think of that?
> >
> > +1 for constructor approach, it would ease the LogTargetFactories I'm
> > writing for the LogKitManagement as well as being consistent to the
> > other LogTarget IIRC.
> >
> > > > 3. a RotateStrategy which can combine more than one strategy.
> >
> > We here use
> >
> > > >    in the first run the RotateStrategyByTime, however if
> >
> > during a period
> >
> > > >    of time the log gets to big (RotateStrategyBySize) we rotate. So
> > > >    you have a hierarchical rotate strategy.
> > >
> > > I like.
> >
> > How to realize? Passing a array of strategies?
> >
> > > > If you also think that these features are valuable, I can
> >
> > implement them
> >
> > > > and contribute it.
> > >
> > > go for it ;)
> >
> > +1 :)
> >
> > Giacomo
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: avalon-dev-help@jakarta.apache.org

----------------------------------------
Content-Type: application/x-zip-compressed; charset="us-ascii"; 
name="HierarchicalRotateStrategy.zip"
Content-Transfer-Encoding: base64
Content-Description: 
----------------------------------------

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="Attachment: 2"
Content-Transfer-Encoding: 7bit
Content-Description: 
----------------------------------------

-- 
Cheers,

Pete

*-----------------------------------------------------*
* "Faced with the choice between changing one's mind, *
* and proving that there is no need to do so - almost *
* everyone gets busy on the proof."                   *
*              - John Kenneth Galbraith               *
*-----------------------------------------------------*

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org