FWIW here is what I have that works under win2k:

services.LoggingService.system.destination.file=/logs/turbine.log
services.LoggingService.system.className=org.apache.turbine.services.logging
.Log4JavaLogger
services.LoggingService.system.level=INFO
services.LoggingService.system.file.size=268
#services.LoggingService.system.file.size=268288
services.LoggingService.system.file.backups=5

The extremely small file.size setting should result in all 5 backup files
being
created immediately when the web app is started.  The commented out
file.size represents a more realistic value.

HTH,

Scott

----- Original Message -----
From: "Dave Hollar" <[EMAIL PROTECTED]>
To: "Turbine Users List" <[EMAIL PROTECTED]>
Sent: Monday, January 28, 2002 3:05 AM
Subject: Re: Log rolling


> I see the same behavior as Blair - file is truncated without backups - on
my
> win2k development machine.  It doesn't seem to be a file permissions
problem
> for me - I set my tr.prop the same as Blair in his previous email.  Any
> other thoughts?
>
> ----- Original Message -----
> From: "Scott Eade" <[EMAIL PROTECTED]>
> To: "Turbine Users List" <[EMAIL PROTECTED]>
> Sent: Saturday, January 26, 2002 7:06 PM
> Subject: Re: Log rolling
>
>
> > I have seen the problem you describe and I am pretty sure
> > it relates to file permissions.
> >
> > Log rotation works fine on my Win2K development machine
> > and fine on a Linux host at one ISP where I have my own
> > tomcat instance running under my userid.  It fails in the manner
> > described however at another ISP where I only have access
> > to a shared Resin server (i.e. it runs as a different userid).
> >
> > I attempted to get it working by opening up the file
> > permissions so that the server could create the files and
> > then winding the permissions back after they were created
> > (make the file size very small to achieve this quickly).  But I
> > think it still failed.
> >
> > In short, I don't have the answer but I suggest you look
> > into the file permissions.
> >
> > HTH,
> >
> > Scott
> >
> > ----- Original Message -----
> > From: "Blair Martin" <[EMAIL PROTECTED]>
> > To: "Turbine Users List" <[EMAIL PROTECTED]>
> > Sent: Sunday, January 27, 2002 9:50 AM
> > Subject: Re: Log rolling
> >
> >
> > > The silence is deafening. I must have asked a stupid question. :)
> > >
> > > Has no one else had problems with log rotation? Can I at least hear
from
> > one
> > > person who knows for a fact that backup logs are created for them.
Then
> > I'll
> > > start poking through some of my code.
> > >
> > > Thanks.
> > >
> > > Blair
> > >
> > >
> > > ----- Original Message -----
> > > From: "Blair Martin" <[EMAIL PROTECTED]>
> > > To: "Turbine Users List" <[EMAIL PROTECTED]>
> > > Sent: Wednesday, January 16, 2002 12:21 PM
> > > Subject: Re: Log rolling
> > >
> > >
> > > > Found the following in the archive re. log rollover. It appears to
be
> > the
> > > > same problem I'm having. The log file is truncated when the size
limit
> > is
> > > > reached but no backup is created so everything is lost. My
properties:
> > > >
> > > > services.LoggingService.facilities=system,debug,security,rotation
> > > > services.LoggingService.default=rotation
> > > >
> > >
> >
>
services.LoggingService.loggingConfig=org.apache.turbine.services.logging.Pr
> > > > opertiesLoggingConfig
> > > > ...
> > > > # An example configuration for automatic log rotation using Log4Java
> > > > # This will keep the log file size under 1MB and save up to 5 backup
> > > copies
> > > > services.LoggingService.rotation.destination.file=/logs/turbine.log
> > > > services.LoggingService.rotation.file.size=1048576
> > > > services.LoggingService.rotation.file.backups=5
> > > >
> > >
> >
>
services.LoggingService.rotation.className=org.apache.turbine.services.loggi
> > > > ng.Log4JavaLogger
> > > > services.LoggingService.rotation.level=DEBUG
> > > >
> > > > I'm using Turbine 2.1 on Win2K. Any ideas?
> > > >
> > > > Blair
> > > >
> > > > >>>>>>>>>>>>>>>>>>
> > > > Hi
> > > >
> > > > Just try to set
> > > > services.LoggingService.default=rotation
> > > >
> > > > Should be able to get the things working...
> > > >
> > > > Regards
> > > > ==========
> > > > Ian Lim
> > > > email: [EMAIL PROTECTED]
> > > > homepage: http://www.webappcabaret.com/mallim
> > > >
> > > > ----- Original Message -----
> > > > From: "Chris Campbell" <[EMAIL PROTECTED]>
> > > > To: "Turbine Users List" <[EMAIL PROTECTED]>
> > > > Sent: Friday, December 14, 2001 04:44 AM
> > > > Subject: Log rolling
> > > >
> > > >
> > > > I don't see the turbine log getting rolled. I'm using Turbine 2.1
> > > >
> > > > I have in TR.props
> > > >
> > > > services.LoggingService.facilities=system,debug,security,rotation
> > > > services.LoggingService.default=system
> > > >
> services.LoggingService.loggingConfig=org.apache.turbine.services.loggin
> > > > g.PropertiesLoggingConfig
> > > >
> > > > other logging conf...
> > > >
> > > > services.LoggingService.rotation.destination.file=/logs/turbine.log
> > > > services.LoggingService.rotation.file.size=2048
> > > > services.LoggingService.rotation.file.backups=5
> > > >
> services.LoggingService.rotation.className=org.apache.turbine.services.l
> > > > ogging.Log4JavaLogger
> > > > services.LoggingService.rotation.level=INFO
> > > >
> > > > Any idea what is going on? ( i made the size small so I could
observe
> > > > the roll... )
> > > >
> > > > Chris C



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to