This commit is contained in:
mrbesen 2019-01-04 12:19:04 +01:00
parent 64cdf55996
commit 0c6ef5c196
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
2 changed files with 10 additions and 1 deletions

View File

@ -120,6 +120,7 @@ public class TelegramAPI implements Runnable {
Thread.sleep(10);
} catch(InterruptedException e) {}
}
log.log("tapi stoped.");
thread = null;
}

View File

@ -4,8 +4,16 @@ import org.apache.log4j.Logger;
public class Log4JLog extends Log {
Logger log = Logger.getRootLogger();
Logger log;
public Log4JLog() {
log = Logger.getRootLogger();
}
public Log4JLog(Logger l) {
log = l;
}
@Override
public void log(String msg) {
log.info(msg);