Logger angefügt

This commit is contained in:
JanUlrich 2014-10-09 17:38:29 +02:00
parent 1141417c0b
commit b31f770fe3
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,29 @@
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 {
}
}

View File

@ -0,0 +1,7 @@
package de.dhbwstuttgart.logger;
public enum Section {
TYPEINFERENCE,
PARSER,
CODEGEN;
}