LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > How to keep production.log size within reason?

Reply
 
Thread Tools Display Modes
  #1  
Old 11-10-2008, 05:29 AM
Dauntless Dauntless is offline
Member
 
Join Date: Oct 2008
Posts: 13
Default How to keep production.log size within reason?

I had observed I had a HUGE production.log in Rails and was told by my hosting provider to include this statement in the /environments/production.rb file;

config.logger = Logger.new("#{RAILS_ROOT}/log/production.log", 'weekly')

To my dismay I went in yesterday to 'Show Off' to a friend how neat my websites looked and there were '500 Server' errors on almost every page. Sometimes they'd come up, however?
I went to my Litespeed console and observed in log screen that there was some error (sorry I didn't write it down) that referred to the production.log?
Anyway, I simply deleted the above line and now it works fine.
How would you propose I keep my production.log trimmed down?
Thank you,
David Kennedy
Reply With Quote
  #2  
Old 11-10-2008, 01:31 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
prodcution.log is a rails log file, not controlled by LSWS. LSWS log files will be rotated automatically.
You may need to create a cron job to archive or truncate it.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 09:34 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.