diff --git a/src/de/dhbwstuttgart/core/MyCompiler.java b/src/de/dhbwstuttgart/core/MyCompiler.java index 375cd684b..1128140b3 100755 --- a/src/de/dhbwstuttgart/core/MyCompiler.java +++ b/src/de/dhbwstuttgart/core/MyCompiler.java @@ -95,6 +95,7 @@ public class MyCompiler implements MyCompilerAPI * Author: J�rg B�uerle
* Der private Konstruktor. Es soll von au�en kein Compiler angelegt werden * k�nnen, sondern nur eine API zur Verf�gung gestellt werden. + * @param logger Konfiguration für Debug Ausgabe TODO */ // ino.end // ino.method.MyCompiler.21283.definition diff --git a/src/de/dhbwstuttgart/logger/Logger.java b/src/de/dhbwstuttgart/logger/Logger.java index 3003da8ea..7985948d1 100644 --- a/src/de/dhbwstuttgart/logger/Logger.java +++ b/src/de/dhbwstuttgart/logger/Logger.java @@ -2,7 +2,9 @@ package de.dhbwstuttgart.logger; import java.io.PrintStream; import java.util.HashMap; +import java.util.logging.Handler; import java.util.logging.Level; +import java.util.logging.LogRecord; public class Logger { @@ -75,5 +77,26 @@ public class Logger { public static void setStandardOutput(PrintStream outputStream) { Logger.standardOutput = outputStream; } - +} + +class OutputHandler extends Handler{ + + private PrintStream output; + + public OutputHandler(PrintStream output){ + this.output = output; + } + + @Override + public void publish(LogRecord record) { + output.println(record.getMessage()); + } + + @Override + public void flush() { + } + + @Override + public void close() throws SecurityException { + } } diff --git a/src/de/dhbwstuttgart/logger/OutputHandler.java b/src/de/dhbwstuttgart/logger/OutputHandler.java deleted file mode 100644 index fc57d7466..000000000 --- a/src/de/dhbwstuttgart/logger/OutputHandler.java +++ /dev/null @@ -1,29 +0,0 @@ -package de.dhbwstuttgart.logger; - -import java.io.PrintStream; -import java.util.logging.Handler; -import java.util.logging.LogRecord; - -public class OutputHandler extends Handler{ - - private PrintStream output; - - public OutputHandler(PrintStream output){ - this.output = output; - } - - @Override - public void publish(LogRecord record) { - output.println(record.getMessage()); - } - - @Override - public void flush() { - } - - @Override - public void close() throws SecurityException { - } - - -}