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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]