This would probably be all right, but you should leave a default setting, so
that thos who only want one log can still just call Log.note("blah").
I would be interested in hearing others' opinion on separating the Log
entries into many different files. It seemed for awhile people were
irritated that we defined even a single log file, separate from the servlet
engine's log.
----- Original Message -----
From: John Thorhauer <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Friday, June 23, 2000 8:17 AM
Subject: Re: multiple log files in turbine
> Sean Legassick wrote:
> >
> > This isn't thread safe. A better method would involve overloading
> > Log.note, Log.error etc
>
> I see what you mean :-( How about this idea. I change the Log class so
> that it loads multiple files on startup as specified in the
> TurbineResources.properties. TurbineResources.prperties would look
> something like this:
>
> system.logcount=3
> log1.property.name=log-system
> log2.property.name=log-db
> log3.property.name=log-sec
>
> log-system=/turbine/logs/turbine.log
> log-db=/turbine/logs/turbine.log
> log-sec=/turbine/turbine.log
>
>
> This way all the files exist on init() and can be referenced
> individually in code with someting like Log.note(logname,text). Hows
> that sound?
>
>
> John Thorhauer
>
> --
> ********************************
> ** John Thorhauer
> ** Web Developer
> ** Phoenix Color Corp.
> ** [EMAIL PROTECTED]
> ********************************
>
>
> ------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?: [EMAIL PROTECTED]
>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]