forked from JavaTX/JavaCompilerCore
Logger angefügt
This commit is contained in:
parent
1141417c0b
commit
b31f770fe3
29
src/de/dhbwstuttgart/logger/OutputHandler.java
Normal file
29
src/de/dhbwstuttgart/logger/OutputHandler.java
Normal 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 {
|
||||
}
|
||||
|
||||
|
||||
}
|
7
src/de/dhbwstuttgart/logger/Section.java
Normal file
7
src/de/dhbwstuttgart/logger/Section.java
Normal file
@ -0,0 +1,7 @@
|
||||
package de.dhbwstuttgart.logger;
|
||||
|
||||
public enum Section {
|
||||
TYPEINFERENCE,
|
||||
PARSER,
|
||||
CODEGEN;
|
||||
}
|
Loading…
Reference in New Issue
Block a user