Package org.gudy.azureus2.core3.logging

Examples of org.gudy.azureus2.core3.logging.LogEvent


      public boolean completed(ResourceDownloader downloader, InputStream data) {
        try {
          setNextAutoDownload(true);

          Logger.log(new LogEvent(LOGID, "downloaded..waiting"));
          // since this is a different thread, we can use class_mon as
          // a cheap semaphore to wait until previous load completes
          class_mon.enter();
          Logger.log(new LogEvent(LOGID, "downloaded.. copying"));

          try {
            FileUtil.copyFile(data, FileUtil.getUserFile("ipfilter.dl"));
            AEThread thread = new AEThread("reload ipfilters", true) {
              public void runSupport() {
View Full Code Here


    // Helper log functions.
  static void logInfo(String message, DownloadManager dm) {
    LogRelation lr = (dm instanceof LogRelation) ? (LogRelation)dm : null;
    if (lr == null) {return;}
    if (!Logger.isEnabled()) {return;}
    Logger.log(new LogEvent(lr, LogIDs.CORE, LogEvent.LT_INFORMATION, message));
  }
View Full Code Here

  static void logWarn(String message, DownloadManager dm) {
    LogRelation lr = (dm instanceof LogRelation) ? (LogRelation)dm : null;
    if (lr == null) {return;}
    if (!Logger.isEnabled()) {return;}
    Logger.log(new LogEvent(lr, LogIDs.CORE, LogEvent.LT_WARNING, message));
  }
View Full Code Here

 
  static void logError(String message, DownloadManager dm, Throwable e) {
    LogRelation lr = (dm instanceof LogRelation) ? (LogRelation)dm : null;
    if (lr == null) {return;}
    if (!Logger.isEnabled()) {return;}
    Logger.log(new LogEvent(lr, LogIDs.CORE, message, e));
  }
View Full Code Here

                   
                  }else{
                   
                       if ( Logger.isEnabled()){
                     
                         Logger.log(new LogEvent(LOGID, "Outgoing UDP stream to " + address + " established, type = " + filter.getName(false)));
                      }
                      
                       udp_transport.connectedOutbound();
                      
                       listener.connectSuccess( udp_transport, remaining_initial_data );
View Full Code Here

      // called while holding the "connections" monitor
   
    if ( selector == null ){
     
      if (Logger.isEnabled()){
        Logger.log(new LogEvent(LOGID, "UDPConnectionManager: activating" ));
      }
     
      selector = new UDPSelector(this );
     
      protocol_timer = new ProtocolTimer();
View Full Code Here

        idle_start = now;
       
      }else if ( now - idle_start > THREAD_LINGER_ON_IDLE_PERIOD ){
       
        if (Logger.isEnabled()){
          Logger.log(new LogEvent(LOGID, "UDPConnectionManager: deactivating" ));
        }
       
        selector.destroy();
       
        selector = null;
View Full Code Here

           
            recently_dead_keys.put( key, new Long( SystemTime.getCurrentTime()));
           
            if (Logger.isEnabled()){
             
              Logger.log(new LogEvent(LOGID, "Connection set " + key + " failed"));
            }
          }
        }
      }                           
    }                   
View Full Code Here

       
        recently_dead_keys.put( key, new Long( SystemTime.getCurrentTime()));
       
        if (Logger.isEnabled()){
         
          Logger.log(new LogEvent(LOGID, "Connection set " + key + " failed"));
        }
      }                     
    }                   
  }
View Full Code Here

       
        connection_set = new UDPConnectionSet( this, key, current_selector, local_port, address );
       
        if (Logger.isEnabled()){
         
          Logger.log(new LogEvent(LOGID, "Created new set - " + connection_set.getName() + ", outgoing"));
        }
       
        connection_sets.put( key, connection_set );
      }
     
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.core3.logging.LogEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.