/** * 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(); } }
/** * 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); } }