本文整理了Java中org.gridkit.zerormi.zlog.ZLogger
类的一些代码示例,展示了ZLogger
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZLogger
类的具体详情如下:
包路径:org.gridkit.zerormi.zlog.ZLogger
类名称:ZLogger
暂无
代码示例来源:origin: gridkit/nanocloud
public LogStream get(String path, LogLevel level) {
return root.get(path, level);
}
代码示例来源:origin: gridkit/nanocloud
public ZLogger getLogger(String path) {
return root.getLogger(path);
}
代码示例来源:origin: gridkit/nanocloud
public LogStream info() {
return root.info();
}
代码示例来源: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
return m.group(2);
logger.critical().log("{java -version} " + line);
logger.fatal().log("JVM verification failed: " + javaCmd);
while(true) {
String line = outr.readLine();
break;
logger.critical().log("{java -version} " + line);
logger.warn().log("JVM verification error", e);
return null;
代码示例来源:origin: gridkit/nanocloud
public LogStream debug() {
return root.debug();
}
代码示例来源:origin: gridkit/nanocloud
public LogStream trace() {
return root.trace();
}
代码示例来源:origin: gridkit/nanocloud
public LogStream critical() {
return root.critical();
}
代码示例来源:origin: gridkit/nanocloud
public LogStream fatal() {
return root.fatal();
}
代码示例来源:origin: gridkit/nanocloud
public LogStream verbose() {
return root.verbose();
}
代码示例来源:origin: gridkit/nanocloud
public LogStream warn() {
return root.warn();
}
代码示例来源:origin: gridkit/nanocloud
@Override
public LogStream debug() {
return new FilteredLogStream(logger.debug(), path, LogLevel.DEBUG);
}
代码示例来源:origin: gridkit/nanocloud
@Override
public LogStream trace() {
return new FilteredLogStream(logger.trace(), path, LogLevel.TRACE);
}
}
代码示例来源:origin: gridkit/nanocloud
@Override
public LogStream critical() {
return new FilteredLogStream(logger.critical(), path, LogLevel.CRITICAL);
}
代码示例来源:origin: gridkit/nanocloud
@Override
public LogStream fatal() {
return new FilteredLogStream(logger.fatal(), path, LogLevel.FATAL);
}
代码示例来源:origin: gridkit/nanocloud
@Override
public LogStream verbose() {
return new FilteredLogStream(logger.verbose(), path, LogLevel.VERBOSE);
}
代码示例来源:origin: gridkit/nanocloud
@Override
public LogStream warn() {
return new FilteredLogStream(logger.warn(), path, LogLevel.WARN);
}
代码示例来源:origin: org.gridkit.lab/zerormi
public RemotingHub(ZLogger logger) {
try {
this.logInfo = logger.get(getClass().getSimpleName(), LogLevel.INFO);
this.logWarn = logger.get(getClass().getSimpleName(), LogLevel.WARN);
this.logError = logger.get(getClass().getSimpleName(), LogLevel.CRITICAL);
srnd = SecureRandom.getInstance("SHA1PRNG");
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}
}
代码示例来源: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/telecontrol-ssh
@Override
public void reconnected(DuplexStream stream) {
logger.info().log("Reconnected: " + stream);
}
内容来源于网络,如有侵权,请联系作者删除!