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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > Logs: Rotation, Management & External Applications

Reply
 
Thread Tools Display Modes
  #1  
Old 02-17-2007, 05:21 PM
mabonyi mabonyi is offline
Member
 
Join Date: Sep 2006
Posts: 17
Default Logs: Rotation, Management & External Applications

I have a couple of requests to improve log management.

My first request is pretty simple. Presently, there's no way to stop the server from rotating its error log when LiteSpeed restarts (presumably to give a clean copy to the Web UI). Could you please add an option (Yes/No - Rotate Log on Restart?) to disable this behaviour? It would make it consistent with virtual host error logs and easier to manage with log management tools like logrotate.

Also, presently there's no way to manage external application errors. PHP LSAPI errors go to the server error log but Ruby LSAPI errors go to stderr. I can't make them go to one log or to a virtual host's error log. This is especially important in a shared hosting environment, because the site admin (me, in this case) needs to get involved in each company's debugging woes. I have two possible solutions for this.

The first is to change the current behaviour so that errors from an external application also go to any virtual host which uses it as a script handler or in a context. By adding the errors to a virtual host log instead of the server, site admins don't need to be involved in debugging and the client has one file of errors (for both the host and its applications).

The second, and the more interesting (I think), is to add logging options to external applications themselves. By separating applications from hosts just as hosts are from the server, you isolate errors to a single file, simplify the debugging process for clients, and simplify permission schemes for site admins. The interface could be very basic (defaults to server error log or write to its own file) or more complex (server, its own file, 'associated vhosts', or selected vhosts).

I think quite a few people, especially the Ruby on Rails community, would enjoy these two additions.

Anyway, please keep up the good work, chaps. I like the new interface for the 3.0 beta and the quick turnaround of fixes lately. It's a pleasure to upgrade LiteSpeed and find it more stable and usable each time.

- Mathew Abonyi
Reply With Quote
  #2  
Old 02-18-2007, 12:26 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thank you for those suggestions.

Quote:
Could you please add an option (Yes/No - Rotate Log on Restart?) to disable this behaviour?
Yes, it is possible. We will add that into 3.0 official release.

Quote:
The first is to change the current behaviour so that errors from an external application also go to any virtual host which uses it as a script handler or in a context. By adding the errors to a virtual host log instead of the server, site admins don't need to be involved in debugging and the client has one file of errors (for both the host and its applications).
How server/virtual host log work in LSWS is that a vhost can be configured to log to its own log or just server log, when log to its own log file, all log messages will go into server log as well.

Quote:
The second, and the more interesting (I think), is to add logging options to external applications themselves. By separating applications from hosts just as hosts are from the server, you isolate errors to a single file, simplify the debugging process for clients, and simplify permission schemes for site admins. The interface could be very basic (defaults to server error log or write to its own file) or more complex (server, its own file, 'associated vhosts', or selected vhosts).
Standalone stderr log file for each external application is over kill to me, log everything to the vhost log is a more practical solution.

Right now, the only part need to be improved is ruby LSAPI, to make it is possible to log STDERR into the vhost log file in stead of stderr.log.

What do you think?

Last edited by mistwang; 02-18-2007 at 12:42 PM..
Reply With Quote
  #3  
Old 02-18-2007, 01:15 PM
mabonyi mabonyi is offline
Member
 
Join Date: Sep 2006
Posts: 17
Quote:
An environment variable like "LS_LOG_NO_ROTATE" is prefered solution.
Sounds perfect. That should be easy to add to init scripts.

Quote:
Standalone stderr log file for each external application is over kill to me, log everything to the vhost log is a more practical solution.
Yes, standalone log files could be overkill. Logging to vhost is just as good. But when you say log everything, do you mean server level applications too? For example, if you have a server-level lsphp-5 external application and server-level 'php' script handler, could errors on example.com/buggy.php also go to example.com's error logs? That would be slick.

Quote:
Right now, the only part need to be improved is ruby LSAPI, to make it is possible to log STDERR into the vhost log file in stead of stderr.log.
LS_LOG_NO_ROTATE and Ruby LSAPI stderr to error for right now would be superb additions.
Reply With Quote
  #4  
Old 02-18-2007, 01:53 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Quote:
Quote:
An environment variable like "LS_LOG_NO_ROTATE" is prefered solution.
Sounds perfect. That should be easy to add to init scripts.
We find a better solution to have it controled via configuration file.

Quote:
Yes, standalone log files could be overkill. Logging to vhost is just as good. But when you say log everything, do you mean server level applications too? For example, if you have a server-level lsphp-5 external application and server-level 'php' script handler, could errors on example.com/buggy.php also go to example.com's error logs? That would be slick.
That's correct.
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 06:44 AM.



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