Return-Path: william@bourbon.usc.edu Delivery-Date: Fri Oct 31 07:36:59 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on merlot.usc.edu X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Received: from bourbon.usc.edu (bourbon.usc.edu [128.125.9.75]) by merlot.usc.edu (8.14.1/8.14.1) with ESMTP id m9VEaxdR017545 for ; Fri, 31 Oct 2008 07:36:59 -0700 Received: from bourbon.usc.edu (localhost.localdomain [127.0.0.1]) by bourbon.usc.edu (8.14.2/8.14.1) with ESMTP id m9VEmogq027608 for ; Fri, 31 Oct 2008 07:48:50 -0700 Message-Id: <200810311448.m9VEmogq027608@bourbon.usc.edu> To: cs551@merlot.usc.edu Subject: Re: cs551 about logging Date: Fri, 31 Oct 2008 07:48:50 -0700 From: Bill Cheng Someone wrote: > The spec says "The log file should deleted only when a node is started > with the -reset commandline option." So if node starts without -reset, > the records should be added at the end of the log file, right? Correct. If you use fopen(), the last argument should be "a". > So when node shutdown, we should add an line like "** node shutdown **", > otherwise we can't distinguish between two run times in the log, is it > correct? That would certainly help with grading if there are any issues. Please make sure you begin the line with "//". -- Bill Cheng // bill.cheng@usc.edu