本文整理了Java中org.apache.openejb.util.Logger.fatal()
方法的一些代码示例,展示了Logger.fatal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.fatal()
方法的具体详情如下:
包路径:org.apache.openejb.util.Logger
类名称:Logger
方法名:fatal
暂无
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public void fatal(final Object message, final Throwable t) {
logger.fatal(String.valueOf(message), t);
}
代码示例来源:origin: org.apache.tomee/openejb-core
@Override
public void fatal(final Object message) {
logger.fatal(String.valueOf(message));
}
代码示例来源:origin: org.apache.tomee/openejb-core
@Override
public void fatal(final Object message, final Throwable t) {
logger.fatal(String.valueOf(message), t);
}
代码示例来源:origin: org.apache.openejb/openejb-core
@Override
public void fatal(final Object message) {
logger.fatal(String.valueOf(message));
}
代码示例来源:origin: org.apache.openejb/openejb-core
public void log(final String level, final String message) {
if ("info".equals(level.toLowerCase())) {
info(message);
} else if ("debug".equals(level.toLowerCase())) {
debug(message);
} else if ("warning".equals(level.toLowerCase())) {
warning(message);
} else if ("fatal".equals(level.toLowerCase())) {
fatal(message);
} else if ("error".equals(level.toLowerCase())) {
error(message);
}
}
代码示例来源:origin: org.apache.tomee/openejb-core
public void log(final String level, final String message) {
final String levelLowerCase = level.toLowerCase(Locale.ENGLISH);
if ("info".equals(levelLowerCase)) {
info(message);
} else if ("debug".equals(levelLowerCase)) {
debug(message);
} else if ("warning".equals(levelLowerCase)) {
warning(message);
} else if ("fatal".equals(levelLowerCase)) {
fatal(message);
} else if ("error".equals(levelLowerCase)) {
error(message);
}
}
代码示例来源:origin: org.apache.openejb/openejb-ejbd
@Override
public void processResponse(final Response response, final ObjectOutputStream out, final ProtocolMetaData metaData) throws Exception {
if (AuthenticationResponse.class.isInstance(response)) {
final AuthenticationResponse res = (AuthenticationResponse) response;
res.setMetaData(metaData);
try {
res.writeExternal(out);
} catch (final Exception e) {
logger.fatal("Could not write AuthenticationResponse to output stream", e);
}
} else {
logger.error("AuthRequestHandler cannot process an instance of: " + response.getClass().getName());
}
}
}
代码示例来源:origin: org.apache.openejb/openejb-core
private void logJPQLQuery(final Class<?> unwrap, final Method mtd) {
String query = null;
Object realQuery = delegate;
if (unwrap != null) {
realQuery = delegate.unwrap(unwrap);
}
try {
query = (String) mtd.invoke(realQuery);
} catch (final Exception e) {
try {
query = getQueryString();
} catch (final Exception ignored) {
// no-op
}
}
final String msg = "executing query '" + query + "'";
if (logLevel.equals("info")) {
LOGGER.info(msg);
} else if (logLevel.equals("debug") || logLevel.equals("fine") || logLevel.equals("finest")) {
LOGGER.debug(msg);
} else if (logLevel.equals("error")) {
LOGGER.error(msg);
} else if (logLevel.equals("fatal")) {
LOGGER.fatal(msg);
} else if (logLevel.equals("warning") || logLevel.equals("warn")) {
LOGGER.warning(msg);
} else {
LOGGER.debug(msg);
}
}
代码示例来源:origin: org.apache.tomee/openejb-core
private void logJPQLQuery(final Class<?> unwrap, final Method mtd) {
String query = null;
Object realQuery = delegate;
if (unwrap != null) {
realQuery = delegate.unwrap(unwrap);
}
try {
query = (String) mtd.invoke(realQuery);
} catch (final Exception e) {
try {
query = getQueryString();
} catch (final Exception ignored) {
// no-op
}
}
final String msg = "executing query '" + query + "'";
if (logLevel.equals("info")) {
LOGGER.info(msg);
} else if (logLevel.equals("debug") || logLevel.equals("fine") || logLevel.equals("finest")) {
LOGGER.debug(msg);
} else if (logLevel.equals("error")) {
LOGGER.error(msg);
} else if (logLevel.equals("fatal")) {
LOGGER.fatal(msg);
} else if (logLevel.equals("warning") || logLevel.equals("warn")) {
LOGGER.warning(msg);
} else {
LOGGER.debug(msg);
}
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-server
logger.fatal("Service Start Failed: "+d.getName() + " " + d.getIP() + " " + d.getPort() + ": " + e.getMessage());
if (display) {
printRow(d.getName(), "----", "FAILED");
logger.fatal("Unable to keep the server thread alive. Received exception: " + t.getClass().getName() + " : " + t.getMessage());
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-server
resourceAdapter.stop();
} catch (Exception e) {
logger.fatal("ResourceAdapter Shutdown Failed: "+binding.getName(), e);
logger.fatal("Unable to get ResourceAdapters from JNDI. Stop must be called on them for proper vm shutdown.", e);
daemons[i].stop();
} catch (ServiceException e) {
logger.fatal("Service Shutdown Failed: "+daemons[i].getName()+". Exception: "+e.getMessage(), e);
代码示例来源:origin: org.apache.openejb/openejb-multicast
} catch (final IOException ex) {
if (failed++ > 100) {
log.fatal("Too many Multipoint Failures. Terminating service.", ex);
return;
代码示例来源:origin: org.apache.openejb/openejb-core
logger.fatal("ResourceAdapter Shutdown Failed: " + name, t);
logger.fatal("ResourceAdapter Shutdown Failed: " + name, t);
代码示例来源:origin: org.apache.tomee/openejb-server
service.stop();
} catch (ServiceException e) {
logger.fatal("Service Shutdown Failed: " + service.getName() + ". Exception: " + e.getMessage(), e);
代码示例来源:origin: org.apache.openejb/openejb-ejbd
res.writeExternal(out);
} catch (final Throwable e) {
logger.fatal("Could not write JndiResponse to output stream", e);
代码示例来源:origin: org.apache.tomee/openejb-core
logger.fatal("ResourceAdapter Shutdown Failed: " + name, t);
logger.fatal("ResourceAdapter Shutdown Failed: " + name, t);
代码示例来源:origin: org.apache.tomee/openejb-server
logger.fatal("Service Start Failed: " + d.getName() + " " + d.getIP() + " " + d.getPort() + ": " + errors[i].getMessage());
if (display) {
printRow(d.getName(), "----", "FAILED");
logger.fatal("Unable to keep the server thread alive. Received exception: " + t.getClass().getName() + " : " + t.getMessage());
代码示例来源:origin: org.apache.openejb/openejb-core
private void createInternalBroker(final String brokerXmlConfig, final Properties properties) {
ActiveMQFactory.setThreadProperties(properties);
try {
//The returned broker should be started, but calling start is harmless.
//We do not need to track the instance as the factory takes care of this.
ActiveMQFactory.createBroker(URLs.uri(getBrokerXmlConfig())).start();
} catch (final Exception e) {
Logger.getInstance(LogCategory.OPENEJB_STARTUP, ActiveMQResourceAdapter.class).getChildLogger("service").fatal("Failed to start ActiveMQ", e);
} finally {
ActiveMQFactory.setThreadProperties(null);
// reset brokerXmlConfig
if (brokerXmlConfig != null) {
setBrokerXmlConfig(brokerXmlConfig);
}
}
}
代码示例来源:origin: org.apache.tomee/openejb-core
private void createInternalBroker(final String brokerXmlConfig, final Properties properties) {
ActiveMQFactory.setThreadProperties(properties);
try {
//The returned broker should be started, but calling start is harmless.
//We do not need to track the instance as the factory takes care of this.
ActiveMQFactory.createBroker(URLs.uri(getBrokerXmlConfig())).start();
} catch (final Exception e) {
Logger.getInstance(LogCategory.OPENEJB_STARTUP, ActiveMQResourceAdapter.class).getChildLogger("service").fatal("Failed to start ActiveMQ", e);
} finally {
ActiveMQFactory.setThreadProperties(null);
// reset brokerXmlConfig
if (brokerXmlConfig != null) {
setBrokerXmlConfig(brokerXmlConfig);
}
}
}
代码示例来源:origin: org.apache.geronimo.ext.openejb/openejb-core
resourceAdapter.stop();
} catch (Exception e) {
logger.fatal("ResourceAdapter Shutdown Failed: " + binding.getName(), e);
内容来源于网络,如有侵权,请联系作者删除!