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]

Reply via email to