Changeset 9a254ae for apps


Ignore:
Timestamp:
Nov 16, 2018 3:08:20 PM (20 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
9b9810e
Parents:
aa11211
Message:

NDT: Restore logging removed in last rev

Location:
apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/JTextArea.java

    raa11211 r9a254ae  
    2424package com.vuze.plugins.mlab.tools.ndt.swingemu;
    2525
     26import edu.internet2.ndt.Tcpbw100;
     27
     28import net.i2p.I2PAppContext;
     29import net.i2p.util.Log;
     30
    2631public class
    2732JTextArea
    2833        extends Component
    2934{
     35        private final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(Tcpbw100.class);
    3036        private String text = "";
    3137       
     
    4349                String          str )
    4450        {
     51                if (_log.shouldWarn())
     52                        _log.warn(str.trim());
    4553                text += str;
    4654        }
  • apps/routerconsole/java/src/com/vuze/plugins/mlab/tools/ndt/swingemu/StyledDocument.java

    raa11211 r9a254ae  
    2424package com.vuze.plugins.mlab.tools.ndt.swingemu;
    2525
     26import edu.internet2.ndt.Tcpbw100;
     27
     28import net.i2p.I2PAppContext;
     29import net.i2p.util.Log;
     30
    2631public class
    2732StyledDocument
    2833{
     34        private final Log _log = I2PAppContext.getGlobalContext().logManager().getLog(Tcpbw100.class);
    2935        public String str = "";
    3036       
     
    4349                throws BadLocationException
    4450        {
     51                if (_log.shouldWarn())
     52                        _log.warn(s.trim());
    4553                str += s;
    4654        }
Note: See TracChangeset for help on using the changeset viewer.