Examples of LoggerChannel


Examples of org.gudy.azureus2.plugins.logging.LoggerChannel

         
          Map  channel_map = getChannelMap( ci );

          final String  name = (String)args.get(1);
         
          LoggerChannel  channel = (LoggerChannel)channel_map.get(name);
         
          if ( channel == null ){
           
            ci.out.println( "> Channel '" + name + "' not found" );
           
          }else if ( channel_listener_map.get(name) != null ){
           
            ci.out.println( "> Channel '" + name + "' already being logged" );

          }else{
           
            LoggerChannelListener  l =
              new LoggerChannelListener()
              {
                public void
                messageLogged(
                  int    type,
                  String  content )
                {
                  ci.out.println( "["+name+"] "+ content );
                }
               
                public void
                messageLogged(
                  String    str,
                  Throwable  error )
                {
                  ci.out.println( "["+name+"] "+ str );
                 
                  error.printStackTrace( ci.out );
                }
              };
             
            channel.addListener( l );
           
            channel_listener_map.put( name, new Object[]{ channel, l });
           
            ci.out.println( "> Channel '" + name + "' on" );
          }
View Full Code Here

Examples of org.gudy.azureus2.plugins.logging.LoggerChannel

 
  public LoggerChannel
  getChannel(
    String    name )
  {
    LoggerChannel  channel = new LoggerChannelImpl( this, name, false, false );
   
    channels.add( channel );
   
    return( channel );
  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.logging.LoggerChannel

 
  public LoggerChannel
  getTimeStampedChannel(
    String    name )
  {
    LoggerChannel  channel = new LoggerChannelImpl( this, name, true, false );
   
    channels.add( channel );
   
    return( channel );
  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.logging.LoggerChannel

 
  public LoggerChannel
  getNullChannel(
    String    name )
  {
    LoggerChannel  channel = new LoggerChannelImpl( this, name, true, true );
   
    channels.add( channel );
   
    return( channel );
  }
View Full Code Here

Examples of org.gudy.azureus2.plugins.logging.LoggerChannel

                {
                   
           
                    try
                    {
                        LoggerChannel logger =View.getPluginInterface().getLogger().getTimeStampedChannel("AZCVSUpdater");
                       
                        UpdateManager um = View.getPluginInterface().getUpdateManager();
                        UpdateInstaller updateInstaller = um.createInstaller();   
                       
                                                
                            File from = new File (complete_file_from);
                            if(!from.isFile())
                            {
                                StatusBoxUtils.mainStatusAdd(" Could not update because " + from.getName() " is not a real file",2);
                            }
                            //System.out.println("AZCVSUpdater:  One File Restart/Exit Action");
                            //System.out.println("From: " + from.getPath() + " To: " + complete_file_to);
                           
                            //updateInstaller.addResource("azcvsupdater_restart_stream" , new FileInputStream (from));
                            updateInstaller.addMoveAction(complete_file_from , complete_file_to);
                           
       
                                                   
                        //System.out.println("AZCVSUpdater:  Sleeping for 5 seconds to ensure all has completed, because Tim says my plugin is lazy ;)");
                        logger.log("Sleeping for 5 seconds to ensure all has completed");
                        Thread.sleep(5000);
                        um.applyUpdates(restart);
                        logger.log("Still here.. even after um.applyUpdates :*(");       
                   
                    }
                    catch (Exception e)
                    {
                        StatusBoxUtils.mainStatusAdd(" Major Error Inserting/Restarting please report to omschaub@users.sourceforge.net",2);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.