org.granite.logging.Logger.trace()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(255)

本文整理了Java中org.granite.logging.Logger.trace()方法的一些代码示例,展示了Logger.trace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.trace()方法的具体详情如下:
包路径:org.granite.logging.Logger
类名称:Logger
方法名:trace

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);

相关文章