Index: trunk/src/tmcsim/client/CADlogDisplay.java
===================================================================
--- trunk/src/tmcsim/client/CADlogDisplay.java	(revision 425)
+++ trunk/src/tmcsim/client/CADlogDisplay.java	(revision 432)
@@ -4,4 +4,6 @@
 import java.awt.event.ActionListener;
 import java.io.FileInputStream;
+import java.io.FileWriter;
+import java.io.PrintWriter;
 import java.rmi.Naming;
 import java.rmi.RemoteException;
@@ -38,9 +40,7 @@
     private static Logger cadClientLogger = Logger.getLogger("tmcsim.client");
 
-    @Override
-    public void refresh() throws RemoteException
-    {
-        throw new UnsupportedOperationException("Not supported yet.");
-    }
+    private static final String CONFIG_FILE_NAME = "cad_client_config.properties";
+    private static final String LOG_FILE_NAME = "CADcomments.log";
+    private final static int TEN_SECONDS = 10000;
 
     /**
@@ -82,6 +82,8 @@
      */
     private CADClientInterface client = this;
-    private static final String CONFIG_FILE_NAME = "cad_client_config.properties";
-    private final static int TEN_SECONDS = 10000;
+    /*
+     * PrintWriter handle for sending log to a file 
+     */
+    private PrintWriter writer;
 
     /**
@@ -103,16 +105,13 @@
                 cadClientProp.getProperty(PROPERTIES.CAD_RMI_PORT.name).trim());
 
-        //theView = new ClockView();
-        //theView.setVisible(true);
-
         // Create a timer that fetches the simulation time every second.
         Timer timer = new Timer(TEN_SECONDS, new ActionListener()
         {
-            public void actionPerformed(ActionEvent e)
+            public void actionPerformed(ActionEvent evt)
             {
                 try
                 {
                     Vector<Incident> incList = theCoorInt.getIncidentList(); 
-                    StringBuffer sb = new StringBuffer();
+                    StringBuffer output = new StringBuffer();
 
                     for (Incident incident: incList)
@@ -120,5 +119,4 @@
                     // DefaultTableModel noteTable = (DefaultTableModel) theCoorInt.getCadDataIncidentTable(INC_TABLE.COMMENTS_NOTES, incident.getLogNum());
                      // Output noteTable
-                        sb.append("Incident # " + incident.logNum + "\n");
                         // Retrieve the table of comments/notes the users created
                         DefaultTableModel notesTable = incident.getCommentsNotesTable();
@@ -127,16 +125,28 @@
                         {
                             // Combine the fields into one export entry
-                            sb.append(notesTable.getValueAt(row,1) + " "); // time
-                            String initials = (String) notesTable.getValueAt(row,2); // initials
+                            //sb.append(notesTable.getValueAt(row,1) + " "); // time
+                            String initials = (String) notesTable.getValueAt(row,2); // user initials
                             // If there are user intials, include this item.
-                            // Zero length initials mean it's a scripted item
+                            // Zero length initials mean it's a scripted item, ignore it.
                             if (initials.length() > 0)
-                            {
-                                sb.append(initials + " ");
-                                sb.append(notesTable.getValueAt(row,4) + "\n"); // notes
+                            {//CAD Log Entry, Incident #187, Sharon: REQUEST EXTRA ANCHOVIES
+                                output.append("CAD log entry, ");
+                                output.append("Incident #" + incident.logNum + ", ");
+                                output.append(initials + ": ");
+                                output.append(notesTable.getValueAt(row,4) + "\n"); // notes
                             }
                         }
                     }
-                    System.out.println(sb);
+                    System.out.print(output);
+                    // Write output to a file
+                    try 
+                    {
+                        writer = new PrintWriter(new FileWriter(LOG_FILE_NAME));
+                        writer.print(output);
+                        writer.close();
+                    } catch (Exception exc) {
+                        exc.printStackTrace();
+                        } 
+        
                     //long simtime = theCoorInt.getCurrentSimulationTime();
                     //theView.updateTime("" + formatInterval(simtime));
@@ -256,4 +266,10 @@
     }
 
+    @Override
+    public void refresh() throws RemoteException
+    {
+        throw new UnsupportedOperationException("Not supported yet.");
+    }
+
     /**
      * Construct the CADClient with the properties file path, either from the
