forked from I2P_Developers/i2p.i2p
NDT: Restore logging removed in last rev
This commit is contained in:
@ -23,10 +23,16 @@
|
|||||||
|
|
||||||
package com.vuze.plugins.mlab.tools.ndt.swingemu;
|
package com.vuze.plugins.mlab.tools.ndt.swingemu;
|
||||||
|
|
||||||
|
import edu.internet2.ndt.Tcpbw100;
|
||||||
|
|
||||||
|
import net.i2p.I2PAppContext;
|
||||||
|
import net.i2p.util.Log;
|
||||||
|
|
||||||
public class
|
public class
|
||||||
JTextArea
|
JTextArea
|
||||||
extends Component
|
extends Component
|
||||||
{
|
{
|
||||||
|
private final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(Tcpbw100.class);
|
||||||
private String text = "";
|
private String text = "";
|
||||||
|
|
||||||
public
|
public
|
||||||
@ -42,6 +48,8 @@ JTextArea
|
|||||||
append(
|
append(
|
||||||
String str )
|
String str )
|
||||||
{
|
{
|
||||||
|
if (_log.shouldWarn())
|
||||||
|
_log.warn(str.trim());
|
||||||
text += str;
|
text += str;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,9 +23,15 @@
|
|||||||
|
|
||||||
package com.vuze.plugins.mlab.tools.ndt.swingemu;
|
package com.vuze.plugins.mlab.tools.ndt.swingemu;
|
||||||
|
|
||||||
|
import edu.internet2.ndt.Tcpbw100;
|
||||||
|
|
||||||
|
import net.i2p.I2PAppContext;
|
||||||
|
import net.i2p.util.Log;
|
||||||
|
|
||||||
public class
|
public class
|
||||||
StyledDocument
|
StyledDocument
|
||||||
{
|
{
|
||||||
|
private final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(Tcpbw100.class);
|
||||||
public String str = "";
|
public String str = "";
|
||||||
|
|
||||||
public int
|
public int
|
||||||
@ -42,6 +48,8 @@ StyledDocument
|
|||||||
|
|
||||||
throws BadLocationException
|
throws BadLocationException
|
||||||
{
|
{
|
||||||
|
if (_log.shouldWarn())
|
||||||
|
_log.warn(s.trim());
|
||||||
str += s;
|
str += s;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user