本文整理了Java中org.granite.logging.Logger.trace()
方法的一些代码示例,展示了Logger.trace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.trace()
方法的具体详情如下:
包路径:org.granite.logging.Logger
类名称:Logger
方法名:trace
暂无
代码示例来源:origin: org.graniteds/granite-client-java
private static boolean isVFSAvailable() {
try {
Class.forName("org.jboss.virtual.VFS");
log.trace("VFS detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client-javafx
private static boolean isVFS3Available() {
try {
Class.forName("org.jboss.vfs.VFS");
log.trace("VFS3 detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-server
private static boolean isVFS3Available() {
try {
Class.forName("org.jboss.vfs.VFS");
log.trace("VFS3 detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client-java
private static boolean isVFS3Available() {
try {
Class.forName("org.jboss.vfs.VFS");
log.trace("VFS3 detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-server
private static boolean isVFSAvailable() {
try {
Class.forName("org.jboss.virtual.VFS");
log.trace("VFS detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client
private static boolean isEmbedded() {
try {
Class.forName("org.jboss.embedded.Bootstrap");
log.trace("JBoss Embedded detected");
return true;
}
catch (Throwable t) {
return false;
}
}
}
代码示例来源:origin: org.graniteds/granite-client
private static boolean isVFS3Available() {
try {
Class.forName("org.jboss.vfs.VFS");
log.trace("VFS3 detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client-javafx
private static boolean isVFSAvailable() {
try {
Class.forName("org.jboss.virtual.VFS");
log.trace("VFS detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client
private static boolean isVFSAvailable() {
try {
Class.forName("org.jboss.virtual.VFS");
log.trace("VFS detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-server
private static boolean isEmbedded() {
try {
ScannerFactory.class.getClassLoader().loadClass("org.jboss.embedded.Bootstrap");
log.trace("JBoss Embedded detected");
return true;
}
catch (Throwable t) {
try {
ScannerFactory.class.getClassLoader().loadClass("org.jboss.as.embedded.EmbeddedServerFactory");
log.trace("JBoss AS 7+ Embedded detected");
return true;
}
catch (Throwable t2) {
}
}
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client-java
private static boolean isEmbedded() {
try {
ScannerFactory.class.getClassLoader().loadClass("org.jboss.embedded.Bootstrap");
log.trace("JBoss Embedded detected");
return true;
}
catch (Throwable t) {
try {
ScannerFactory.class.getClassLoader().loadClass("org.jboss.as.embedded.EmbeddedServerFactory");
log.trace("JBoss AS 7+ Embedded detected");
return true;
}
catch (Throwable t2) {
}
}
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client-javafx
private static boolean isEmbedded() {
try {
ScannerFactory.class.getClassLoader().loadClass("org.jboss.embedded.Bootstrap");
log.trace("JBoss Embedded detected");
return true;
}
catch (Throwable t) {
try {
ScannerFactory.class.getClassLoader().loadClass("org.jboss.as.embedded.EmbeddedServerFactory");
log.trace("JBoss AS 7+ Embedded detected");
return true;
}
catch (Throwable t2) {
}
}
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client-java
private static boolean isJBoss(int version) {
try {
Properties props = new Properties();
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("/org/jboss/version.properties");
if (is == null)
is = Thread.currentThread().getContextClassLoader().getResourceAsStream("org/jboss/version.properties");
if (is != null) {
// JBoss AS 4, 5, 6
props.load(is);
is.close();
int major = Integer.parseInt(props.getProperty("version.major"));
int minor = Integer.parseInt(props.getProperty("version.minor"));
boolean isJBossVersion = major >= version && minor >= 0;
if (isJBossVersion)
log.trace("JBoss " + major + "." + minor + " detected");
return isJBossVersion;
}
// JBoss AS 7 ?
log.trace("JBoss AS 7+ detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client-javafx
private static boolean isJBoss(int version) {
try {
Properties props = new Properties();
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("/org/jboss/version.properties");
if (is == null)
is = Thread.currentThread().getContextClassLoader().getResourceAsStream("org/jboss/version.properties");
if (is != null) {
// JBoss AS 4, 5, 6
props.load(is);
is.close();
int major = Integer.parseInt(props.getProperty("version.major"));
int minor = Integer.parseInt(props.getProperty("version.minor"));
boolean isJBossVersion = major >= version && minor >= 0;
if (isJBossVersion)
log.trace("JBoss " + major + "." + minor + " detected");
return isJBossVersion;
}
// JBoss AS 7 ?
log.trace("JBoss AS 7+ detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-server
private static boolean isJBoss(int version) {
try {
Properties props = new Properties();
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("/org/jboss/version.properties");
if (is == null)
is = Thread.currentThread().getContextClassLoader().getResourceAsStream("org/jboss/version.properties");
if (is != null) {
// JBoss AS 4, 5, 6
props.load(is);
is.close();
int major = Integer.parseInt(props.getProperty("version.major"));
int minor = Integer.parseInt(props.getProperty("version.minor"));
boolean isJBossVersion = major >= version && minor >= 0;
if (isJBossVersion)
log.trace("JBoss " + major + "." + minor + " detected");
return isJBossVersion;
}
// JBoss AS 7 ?
log.trace("JBoss AS 7+ detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-client
private static boolean isJBoss(int version) {
try {
Properties props = new Properties();
InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("/org/jboss/version.properties");
if (is == null)
is = Thread.currentThread().getContextClassLoader().getResourceAsStream("org/jboss/version.properties");
if (is != null) {
// JBoss AS 4, 5, 6
props.load(is);
is.close();
int major = Integer.parseInt(props.getProperty("version.major"));
int minor = Integer.parseInt(props.getProperty("version.minor"));
boolean isJBossVersion = major >= version && minor >= 0;
if (isJBossVersion)
log.trace("JBoss " + major + "." + minor + " detected");
return isJBossVersion;
}
// JBoss AS 7 ?
log.trace("JBoss AS 7+ detected");
return true;
}
catch (Throwable t) {
return false;
}
}
代码示例来源:origin: org.graniteds/granite-server-cdi
public void before(Message amf3RequestMessage) {
if (log.isTraceEnabled())
log.trace("Pre processing of request message: %s", amf3RequestMessage);
代码示例来源:origin: org.graniteds/granite-server-cdi
public void after(Message amf3RequestMessage, Message amf3ResponseMessage) {
try {
if (log.isTraceEnabled())
log.trace("Post processing of response message: %s", amf3ResponseMessage);
内容来源于网络,如有侵权,请联系作者删除!