gpt4 book ai didi

org.gridkit.zerormi.zlog.ZLogger.getLogger()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 23:51:31 31 4
gpt4 key购买 nike

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

ZLogger.getLogger介绍

暂无

代码示例

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

public ZLogger getLogger(String path) {
  return root.getLogger(path);
}

代码示例来源: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: gridkit/nanocloud

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

代码示例来源: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

@Override
public void started(final OutputStream stdIn, final InputStream stdOut, InputStream stdErr) {
  final LineLoggerOutputStream log = new LineLoggerOutputStream("", logger.getLogger("console").warn());
  final LineLoggerOutputStream dlog = new LineLoggerOutputStream("", logger.getLogger("tunneller").info());
  diag = streamCopyService.link(stdErr, log, true);
  Thread thread = new Thread(new Runnable() {
    @Override
    public void run() {
      try {
        // TODO blocking operation in console control thread may be an issue
        TunnellerConnection tcon = new TunnellerConnection("tunneller", stdOut, stdIn, new PrintStream(dlog), 10, TimeUnit.SECONDS);
        tc.setData(tcon);
      } catch (IOException e) {
        tc.setError(e);
      } catch (InterruptedException e) {
        tc.setError(e);
      } catch (TimeoutException e) {
        tc.setError(e);
      }
      diag.flush();                        
    }
  });
  thread.setName("Tunnel initializer");
  thread.start();
}

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

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

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

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

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