Example #1
0
 /**
  * Function for clearing attached loggers - how the logs are actually cleared is up to the logger
  * implementation
  */
 private void clearLog() {
   for (CalculatorLogger l : loggers) {
     l.clear();
   }
 }
Example #2
0
 /**
  * Logging function - outputs operation info as it happens to any and all registered loggers
  *
  * @param str any string
  */
 private void log(String str) {
   for (CalculatorLogger l : loggers) {
     l.log(str);
   }
 }