本文整理了Java中org.gridkit.zerormi.zlog.ZLogger.getLogger()
方法的一些代码示例,展示了ZLogger.getLogger()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLogger.getLogger()
方法的具体详情如下:
包路径:org.gridkit.zerormi.zlog.ZLogger
类名称: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());
内容来源于网络,如有侵权,请联系作者删除!