Beispiel #1
0
 public void logMessage(Loggable loggable, AxisID axisID) {
   if (loggable == null) {
     return;
   }
   try {
     SwingUtilities.invokeLater(
         new AppendLater(
             Utilities.getDateTimeStamp(), loggable.getName(), loggable.getLogMessage(), axisID));
   } catch (LogFile.LockException e) {
     e.printStackTrace();
     SwingUtilities.invokeLater(new AppendLater("Unable to log message:", e.getMessage()));
   } catch (IOException e) {
     e.printStackTrace();
     SwingUtilities.invokeLater(new AppendLater("Unable to log message:", e.getMessage()));
   }
 }