gpt4 book ai didi

org.gridkit.zerormi.zlog.ZLogFactory类的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 12:59:05 37 4
gpt4 key购买 nike

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

ZLogFactory介绍

暂无

代码示例

代码示例来源:origin: org.gridkit.lab/zerormi

public RemotingHub() {
  // TODO to be removed after coupling of remotting and connection dispatching logic
  this(ZLogFactory.getDefaultRootLogger());
}

代码示例来源:origin: org.gridkit.lab/zerormi

public static ZLogger getDefaultRootLogger() {
  if ("slf4j".equals(System.getProperty(PROP_ZLOG_MODE))) {
    return getSlf4JRootLogger();
  }
  else {
    return getStdErrRootLogger();
  }
}

代码示例来源:origin: gridkit/nanocloud

@Override
  public ZLogger instantiate(Map<String, Object> config) {
    String root = (String) config.get("root");
    if (root == null) {
      root = "";
    }
    ZLogger zl = ZLogFactory.getSlf4JRootLogger().getLogger(root);
    if (root != null) {
      zl = zl.getLogger(root);
    }
    return zl;
  }    
}

代码示例来源:origin: org.gridkit.lab/zerormi

public static ZLogger getSlf4JRootLogger() {
    try {
      return (ZLogger) Class.forName("org.gridkit.zerormi.zlog.ZLogToSlf4J").newInstance();
    }
    catch(ClassNotFoundException e) {
      return getStdErrRootLogger();
    }
    catch(NoClassDefFoundError e) {
      return getStdErrRootLogger();
    } 
    catch (InstantiationException e) {
      return getStdErrRootLogger();
    } 
    catch (IllegalAccessException e) {
      return getStdErrRootLogger();
    }
  }    
}

代码示例来源:origin: gridkit/nanocloud

public static ZLogger getSlf4JRootLogger() {
    try {
      return (ZLogger) Class.forName("org.gridkit.zerormi.zlog.ZLogToSlf4J").newInstance();
    }
    catch(ClassNotFoundException e) {
      return getStdErrRootLogger();
    }
    catch(NoClassDefFoundError e) {
      return getStdErrRootLogger();
    } 
    catch (InstantiationException e) {
      return getStdErrRootLogger();
    } 
    catch (IllegalAccessException e) {
      return getStdErrRootLogger();
    }
  }    
}

代码示例来源:origin: gridkit/nanocloud

public RemotingHub() {
  // TODO to be removed after coupling of remotting and connection dispatching logic
  this(ZLogFactory.getDefaultRootLogger());
}

代码示例来源:origin: gridkit/nanocloud

public static ZLogger getDefaultRootLogger() {
  if ("slf4j".equals(System.getProperty(PROP_ZLOG_MODE))) {
    return getSlf4JRootLogger();
  }
  else {
    return getStdErrRootLogger();
  }
}

代码示例来源:origin: org.gridkit.lab/zerormi

public RmiGateway(String name) {
  this(name, new SmartRmiMarshaler(), ZLogFactory.getDefaultRootLogger().getLogger(RmiGateway.class.getPackage().getName()), Collections.<String, Object>emptyMap());
}

代码示例来源:origin: gridkit/nanocloud

public RmiGateway(String name) {
  this(name, new SmartRmiMarshaler(), ZLogFactory.getDefaultRootLogger().getLogger(RmiGateway.class.getPackage().getName()), Collections.<String, Object>emptyMap());
}

代码示例来源:origin: gridkit/nanocloud

zlog = ZLogFactory.getDefaultRootLogger();

代码示例来源:origin: org.gridkit.lab/telecontrol-ssh

logger = ZLogFactory.getDefaultRootLogger().getLogger(getClass().getSimpleName() + "." + rconfig.getHost());

代码示例来源:origin: gridkit/nanocloud

logger = ZLogFactory.getDefaultRootLogger().getLogger(getClass().getSimpleName() + "." + rconfig.getHost());

代码示例来源:origin: org.gridkit.lab/telecontrol-ssh

TunnellerInitiator initiator = new SimpleTunnelInitiator(bootCmd, cachePath, context.lookup(CloudContext.Helper.key(StreamCopyService.class)), ZLogFactory.getDefaultRootLogger());
console = initiator.initTunnel(shhConsole);

代码示例来源:origin: gridkit/nanocloud

TunnellerInitiator initiator = new SimpleTunnelInitiator(bootCmd, cachePath, context.lookup(CloudContext.Helper.key(StreamCopyService.class)), ZLogFactory.getDefaultRootLogger());
console = initiator.initTunnel(shhConsole);

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com