com.jcraft.jsch.JSch.getLogger()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中com.jcraft.jsch.JSch.getLogger()方法的一些代码示例,展示了JSch.getLogger()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JSch.getLogger()方法的具体详情如下:
包路径:com.jcraft.jsch.JSch
类名称:JSch
方法名:getLogger

JSch.getLogger介绍

[英]returns the current Logger.
[中]返回当前记录器。

代码示例

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

private String[] checkKexes(String kexes){
 if(kexes==null || kexes.length()==0)
  return null;
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  JSch.getLogger().log(Logger.INFO, 
             "CheckKexes: "+kexes);
 }
 java.util.Vector result=new java.util.Vector();
 String[] _kexes=Util.split(kexes, ",");
 for(int i=0; i<_kexes.length; i++){
  if(!checkKex(this, getConfig(_kexes[i]))){
   result.addElement(_kexes[i]);
  }
 }
 if(result.size()==0)
  return null;
 String[] foo=new String[result.size()];
 System.arraycopy(result.toArray(), 0, foo, 0, result.size());
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  for(int i=0; i<foo.length; i++){
   JSch.getLogger().log(Logger.INFO, 
              foo[i]+" is not available.");
  }
 }
 return foo;
}

代码示例来源:origin: com.jcraft.jsch/com.springsource.com.jcraft.jsch

private String[] checkCiphers(String ciphers){
 if(ciphers==null || ciphers.length()==0)
  return null;
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  JSch.getLogger().log(Logger.INFO, 
             "CheckCiphers: "+ciphers);
 }
 java.util.Vector result=new java.util.Vector();
 String[] _ciphers=Util.split(ciphers, ",");
 for(int i=0; i<_ciphers.length; i++){
  if(!checkCipher(getConfig(_ciphers[i]))){
   result.addElement(_ciphers[i]);
  }
 }
 if(result.size()==0)
  return null;
 String[] foo=new String[result.size()];
 System.arraycopy(result.toArray(), 0, foo, 0, result.size());
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  for(int i=0; i<foo.length; i++){
   JSch.getLogger().log(Logger.INFO, 
              foo[i]+" is not available.");
  }
 }
 return foo;
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

return null;
if(JSch.getLogger().isEnabled(Logger.INFO)){
 JSch.getLogger().log(Logger.INFO, 
            "CheckSignatures: "+sigs);
String[] foo=new String[result.size()];
System.arraycopy(result.toArray(), 0, foo, 0, result.size());
if(JSch.getLogger().isEnabled(Logger.INFO)){
 for(int i=0; i<foo.length; i++){
  JSch.getLogger().log(Logger.INFO, 
             foo[i]+" is not available.");

代码示例来源:origin: org.mule.jsch/jsch

private String[] checkKexes(String kexes){
 if(kexes==null || kexes.length()==0)
  return null;
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  JSch.getLogger().log(Logger.INFO, 
             "CheckKexes: "+kexes);
 }
 java.util.Vector result=new java.util.Vector();
 String[] _kexes=Util.split(kexes, ",");
 for(int i=0; i<_kexes.length; i++){
  if(!checkKex(this, getConfig(_kexes[i]))){
   result.addElement(_kexes[i]);
  }
 }
 if(result.size()==0)
  return null;
 String[] foo=new String[result.size()];
 System.arraycopy(result.toArray(), 0, foo, 0, result.size());
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  for(int i=0; i<foo.length; i++){
   JSch.getLogger().log(Logger.INFO, 
              foo[i]+" is not available.");
  }
 }
 return foo;
}

代码示例来源:origin: ePaul/jsch-documentation

private String[] checkKexes(String kexes){
 if(kexes==null || kexes.length()==0)
  return null;
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  JSch.getLogger().log(Logger.INFO, 
             "CheckKexes: "+kexes);
 }
 java.util.Vector result=new java.util.Vector();
 String[] _kexes=Util.split(kexes, ",");
 for(int i=0; i<_kexes.length; i++){
  if(!checkKex(this, getConfig(_kexes[i]))){
   result.addElement(_kexes[i]);
  }
 }
 if(result.size()==0)
  return null;
 String[] foo=new String[result.size()];
 System.arraycopy(result.toArray(), 0, foo, 0, result.size());
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  for(int i=0; i<foo.length; i++){
   JSch.getLogger().log(Logger.INFO, 
              foo[i]+" is not available.");
  }
 }
 return foo;
}

代码示例来源:origin: org.mule.jsch/jsch

private void send_newkeys() throws Exception {
 // send SSH_MSG_NEWKEYS(21)
 packet.reset();
 buf.putByte((byte)SSH_MSG_NEWKEYS);
 write(packet);
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  JSch.getLogger().log(Logger.INFO, 
             "SSH_MSG_NEWKEYS sent");
 }
}

代码示例来源:origin: ePaul/jsch-documentation

return null;
if(JSch.getLogger().isEnabled(Logger.INFO)){
 JSch.getLogger().log(Logger.INFO, 
            "CheckSignatures: "+sigs);
String[] foo=new String[result.size()];
System.arraycopy(result.toArray(), 0, foo, 0, result.size());
if(JSch.getLogger().isEnabled(Logger.INFO)){
 for(int i=0; i<foo.length; i++){
  JSch.getLogger().log(Logger.INFO, 
             foo[i]+" is not available.");

代码示例来源:origin: org.mule.jsch/jsch

return null;
if(JSch.getLogger().isEnabled(Logger.INFO)){
 JSch.getLogger().log(Logger.INFO, 
            "CheckSignatures: "+sigs);
String[] foo=new String[result.size()];
System.arraycopy(result.toArray(), 0, foo, 0, result.size());
if(JSch.getLogger().isEnabled(Logger.INFO)){
 for(int i=0; i<foo.length; i++){
  JSch.getLogger().log(Logger.INFO, 
             foo[i]+" is not available.");

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

private void send_newkeys() throws Exception {
 // send SSH_MSG_NEWKEYS(21)
 packet.reset();
 buf.putByte((byte)SSH_MSG_NEWKEYS);
 write(packet);
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  JSch.getLogger().log(Logger.INFO, 
             "SSH_MSG_NEWKEYS sent");
 }
}

代码示例来源:origin: ePaul/jsch-documentation

private void send_newkeys() throws Exception {
 // send SSH_MSG_NEWKEYS(21)
 packet.reset();
 buf.putByte((byte)SSH_MSG_NEWKEYS);
 write(packet);
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  JSch.getLogger().log(Logger.INFO, 
             "SSH_MSG_NEWKEYS sent");
 }
}

代码示例来源:origin: com.jcraft.jsch/com.springsource.com.jcraft.jsch

private void send_newkeys() throws Exception {
 // send SSH_MSG_NEWKEYS(21)
 packet.reset();
 buf.putByte((byte)SSH_MSG_NEWKEYS);
 write(packet);
 if(JSch.getLogger().isEnabled(Logger.INFO)){
  JSch.getLogger().log(Logger.INFO, 
             "SSH_MSG_NEWKEYS sent");
 }
}

代码示例来源:origin: org.mule.jsch/jsch

return null;
if(JSch.getLogger().isEnabled(Logger.INFO)){
 JSch.getLogger().log(Logger.INFO, 
            "CheckCiphers: "+ciphers);
System.arraycopy(result.toArray(), 0, foo, 0, result.size());
if(JSch.getLogger().isEnabled(Logger.INFO)){
 for(int i=0; i<foo.length; i++){
  JSch.getLogger().log(Logger.INFO, 
             foo[i]+" is not available.");

代码示例来源:origin: ePaul/jsch-documentation

return null;
if(JSch.getLogger().isEnabled(Logger.INFO)){
 JSch.getLogger().log(Logger.INFO, 
            "CheckCiphers: "+ciphers);
System.arraycopy(result.toArray(), 0, foo, 0, result.size());
if(JSch.getLogger().isEnabled(Logger.INFO)){
 for(int i=0; i<foo.length; i++){
  JSch.getLogger().log(Logger.INFO, 
             foo[i]+" is not available.");

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

return null;
if(JSch.getLogger().isEnabled(Logger.INFO)){
 JSch.getLogger().log(Logger.INFO, 
            "CheckCiphers: "+ciphers);
System.arraycopy(result.toArray(), 0, foo, 0, result.size());
if(JSch.getLogger().isEnabled(Logger.INFO)){
 for(int i=0; i<foo.length; i++){
  JSch.getLogger().log(Logger.INFO, 
             foo[i]+" is not available.");

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

if(JSch.getLogger().isEnabled(Logger.FATAL)){
 String message="";
 if(name==null){
  message="function "+name+" is not supported";
 JSch.getLogger().log(Logger.FATAL, "PKCS8: "+message);

代码示例来源:origin: ePaul/jsch-documentation

if(JSch.getLogger().isEnabled(Logger.FATAL)){
 String message="";
 if(name==null){
  message="function "+name+" is not supported";
 JSch.getLogger().log(Logger.FATAL, "PKCS8: "+message);

代码示例来源:origin: ePaul/jsch-documentation

public void run(){
 thread=this;
 try{
  while(thread!=null){
   Socket socket=ss.accept();
 socket.setTcpNoDelay(true);
   InputStream in=socket.getInputStream();
   OutputStream out=socket.getOutputStream();
   ChannelDirectTCPIP channel=new ChannelDirectTCPIP();
   channel.init();
   channel.setInputStream(in);
   channel.setOutputStream(out);
 session.addChannel(channel);
 ((ChannelDirectTCPIP)channel).setHost(host);
 ((ChannelDirectTCPIP)channel).setPort(rport);
 ((ChannelDirectTCPIP)channel).setOrgIPAddress(socket.getInetAddress().getHostAddress());
 ((ChannelDirectTCPIP)channel).setOrgPort(socket.getPort());
   channel.connect(connectTimeout);
 if(channel.exitstatus!=-1){
 }
  }
 }
 catch(Exception e){
  if(session.jsch.getLogger().isEnabled(Logger.WARN)) {
   session.jsch.getLogger().log(Logger.WARN, e.toString());
  }
  //System.err.println("! "+e);
 }
 delete();
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jsch

if(JSch.getLogger().isEnabled(Logger.ERROR)){
 JSch.getLogger().log(Logger.ERROR, 
            "ChannelForwardedTCPIP: "+Util.byte2str(addr)+":"+port+" is not registered.");

代码示例来源:origin: org.mule.jsch/jsch

if(JSch.getLogger().isEnabled(Logger.ERROR)){
 JSch.getLogger().log(Logger.ERROR, 
            "ChannelForwardedTCPIP: "+Util.byte2str(addr)+":"+port+" is not registered.");

代码示例来源:origin: ePaul/jsch-documentation

if(JSch.getLogger().isEnabled(Logger.ERROR)){
 JSch.getLogger().log(Logger.ERROR, 
            "ChannelForwardedTCPIP: "+Util.byte2str(addr)+":"+port+" is not registered.");

相关文章