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