Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 04-15-2008
GuillaumeBailey GuillaumeBailey is offline
Registered User
 
Name: Guillaume Bailey
Organization: Lymba Corporation
Project: distributed natural language processing
 
Join Date: Apr 2008
Posts: 1
[IceGrid] Way to do log-rolling for nodes?

I'm having some trouble coming up with a way to accomplish log-rolling of the stderr/stdout logs for the IceGrid nodes in my system. I would think that if I tried the 'easy' method of just moving and replacing the log file, that, since the file is not reopened by ICE, no logs will be written to the new file.

Any ideas on a way to accomplish this?
Reply With Quote
  #2 (permalink)  
Old 04-15-2008
benoit's Avatar
benoit benoit is online now
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,542
Hi,

If you use Linux, you can use logrotate to rotate log files (note that you should the "copytruncate" option to copy and clear the file instead of moving it). If you can't use logrotate, you can copy the file and truncate it with something like "cat /dev/null > test.log".

If these solutions are not an option, you can write your own Ice logger to correctly handle log rotation.

Cheers,
Benoit.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to extend ICE log information? vshevchenko Help Center 2 02-06-2008 01:57 PM
IceGrid Registry Log Greenhippo Help Center 6 08-09-2007 06:25 PM
IceStorm log spicy Help Center 1 07-13-2007 02:39 PM
how to make the registry not to distribute faulty nodes to the client. russule Help Center 2 10-11-2006 10:31 AM
log.0000000001 problem! ewiniar Help Center 5 05-31-2006 05:27 AM


All times are GMT -4. The time now is 10:09 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.