本文整理了Java中org.boon.Boon.trace()
方法的一些代码示例,展示了Boon.trace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Boon.trace()
方法的具体详情如下:
包路径:org.boon.Boon
类名称:Boon
方法名:trace
[英]Like puts but for warn exception logging.
[中]与puts类似,但用于警告异常日志记录。
代码示例来源:origin: boonproject/boon
/**
* Reads a configuration context from many possible roots.
* The roots can be filesystem or classpath://
*
* @param namespace namespace to load.
* @param path path to find config files.
* @param roots roots to find paths.
* @return context
*/
public static Context readConfig(String namespace, String path, String... roots) {
trace("readConfig(namespace, path, roots)", "IN", namespace, path, roots);
if (path.startsWith("/")) {
path = sliceOf(path, 1);
}
if (!path.endsWith(".json")) {
if (!path.endsWith("/")) {
path = add(path, "/");
}
}
ContextConfigReader contextConfigReader = ContextConfigReader.config().namespace(namespace);
for (String root : roots) {
if (!root.endsWith("/")) {
root = add(root, "/");
}
debug("readConfig", "adding root", root);
contextConfigReader.resource(add(root, path));
}
trace("readConfig(namespace, path, roots)", "OUT", namespace, path, roots);
return contextConfigReader.read();
}
代码示例来源:origin: boonproject/boon
/**
* Reads a configuration context from many possible roots.
* The roots can be filesystem or classpath://
*
* @param namespace namespace to load.
* @param path path to find config files.
* @param roots roots to find paths.
* @return context
*/
public static Context readConfig(String namespace, String path, String... roots) {
trace("readConfig(namespace, path, roots)", "IN", namespace, path, roots);
if (path.startsWith("/")) {
path = sliceOf(path, 1);
}
if (!path.endsWith(".json")) {
if (!path.endsWith("/")) {
path = add(path, "/");
}
}
ContextConfigReader contextConfigReader = ContextConfigReader.config().namespace(namespace);
for (String root : roots) {
if (!root.endsWith("/")) {
root = add(root, "/");
}
debug("readConfig", "adding root", root);
contextConfigReader.resource(add(root, path));
}
trace("readConfig(namespace, path, roots)", "OUT", namespace, path, roots);
return contextConfigReader.read();
}
代码示例来源:origin: io.fastjson/boon
/**
* Reads a configuration context from many possible roots.
* The roots can be filesystem or classpath://
*
* @param namespace namespace to load.
* @param path path to find config files.
* @param roots roots to find paths.
* @return context
*/
public static Context readConfig(String namespace, String path, String... roots) {
trace("readConfig(namespace, path, roots)", "IN", namespace, path, roots);
if (path.startsWith("/")) {
path = sliceOf(path, 1);
}
if (!path.endsWith(".json")) {
if (!path.endsWith("/")) {
path = add(path, "/");
}
}
ContextConfigReader contextConfigReader = ContextConfigReader.config().namespace(namespace);
for (String root : roots) {
if (!root.endsWith("/")) {
root = add(root, "/");
}
debug("readConfig", "adding root", root);
contextConfigReader.resource(add(root, path));
}
trace("readConfig(namespace, path, roots)", "OUT", namespace, path, roots);
return contextConfigReader.read();
}
内容来源于网络,如有侵权,请联系作者删除!