NDT: Restore logging removed in last rev

This commit is contained in:
zzz
2018-11-16 15:08:20 +00:00
parent aa11211e5e
commit 9a254aec55
2 changed files with 16 additions and 0 deletions

View File

@ -23,10 +23,16 @@
package com.vuze.plugins.mlab.tools.ndt.swingemu;
import edu.internet2.ndt.Tcpbw100;
import net.i2p.I2PAppContext;
import net.i2p.util.Log;
public class
JTextArea
extends Component
{
private final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(Tcpbw100.class);
private String text = "";
public
@ -42,6 +48,8 @@ JTextArea
append(
String str )
{
if (_log.shouldWarn())
_log.warn(str.trim());
text += str;
}

View File

@ -23,9 +23,15 @@
package com.vuze.plugins.mlab.tools.ndt.swingemu;
import edu.internet2.ndt.Tcpbw100;
import net.i2p.I2PAppContext;
import net.i2p.util.Log;
public class
StyledDocument
{
private final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(Tcpbw100.class);
public String str = "";
public int
@ -42,6 +48,8 @@ StyledDocument
throws BadLocationException
{
if (_log.shouldWarn())
_log.warn(s.trim());
str += s;
}
}