avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: LogKit Configurator
Date Fri, 10 Aug 2001 07:18:39 GMT
On second thoughts how abaout something like

<targets>
  <target name="file:dev/logs/classloader.log"/>

  <target name="console:stderr"/>

  <target name="db:my-table">
    <username>dbsa</username>
    <password>secret</password>
  </target>

 </targets>


On Fri, 10 Aug 2001 13:17, Peter Donald wrote:
> Another way I have about doing it is something like
>
> <targets>
>   <target name="file:dev/logs/classloader.log"/>
>
>   <target name="console:stderr"/>
>
>   <target name="db:my-table">
>     <parameter name="username" value="dbsa"/>
>     <parameter name="password" value="secret"/>
>   </target>
>
> </targets>
>
> Then have a place where factorys could be registered. Factorys would look
> like
>
> interface TargetFactory
> {
>   LogTarget createTarget( String protocol,
>                           String target,
>                           Parameter parameters );
> }
>
> final LogTarget target =
>     factory.createTarget( "file", "/var/log/mylog.log", null );


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


Mime
View raw message