Browse Source

improved simple log

master
mrbesen 1 year ago
parent
commit
aee04b5a13
Signed by: MrBesen GPG Key ID: 596B2350DCD67504
  1. 16
      src/main/java/de/mrbesen/telegram/log/SimpleLog.java

16
src/main/java/de/mrbesen/telegram/log/SimpleLog.java

@ -1,16 +1,24 @@
package de.mrbesen.telegram.log;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import java.io.PrintStream;
@NoArgsConstructor
@AllArgsConstructor
public class SimpleLog extends Log {
private PrintStream out = System.out;
@Override
public void log(String msg) {
System.out.println(msg);
out.println(msg);
}
@Override
public void log(String msg, Throwable t) {
System.out.println(msg);
t.printStackTrace(System.out);
out.println(msg);
t.printStackTrace(out);
}
}
Loading…
Cancel
Save