org.apache.commons.logging.LogFactory.trim()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(4.3k)|赞(0)|评价(0)|浏览(86)

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

LogFactory.trim介绍

[英]Utility method to safely trim a string.
[中]安全修剪字符串的实用方法。

代码示例

代码示例来源:origin: commons-logging/commons-logging

if (isDiagnosticsEnabled()) {
  logDiagnostic("[LOOKUP] A security exception occurred while trying to create an" +
         " instance of the custom factory class" + ": [" + trim(e.getMessage()) +
         "]. Trying alternative implementations...");
  logDiagnostic("[LOOKUP] An exception occurred while trying to create an" +
         " instance of the custom factory class" + ": [" +
         trim(e.getMessage()) +
         "] as specified by a system property.");
      "[LOOKUP] A security exception occurred while trying to create an" +
      " instance of the custom factory class" +
      ": [" + trim(ex.getMessage()) +
      "]. Trying alternative implementations...");

代码示例来源:origin: camunda/camunda-bpm-platform

"[LOOKUP] A security exception occurred while trying to create an"
+ " instance of the custom factory class"
+ ": [" + trim(e.getMessage())
+ "]. Trying alternative implementations...");
"[LOOKUP] An exception occurred while trying to create an"
+ " instance of the custom factory class"
+ ": [" + trim(e.getMessage())
+ "] as specified by a system property.");
"[LOOKUP] A security exception occurred while trying to create an"
+ " instance of the custom factory class"
+ ": [" + trim(ex.getMessage())
+ "]. Trying alternative implementations...");

代码示例来源:origin: Nextdoor/bender

if (isDiagnosticsEnabled()) {
  logDiagnostic("[LOOKUP] A security exception occurred while trying to create an" +
         " instance of the custom factory class" + ": [" + trim(e.getMessage()) +
         "]. Trying alternative implementations...");
  logDiagnostic("[LOOKUP] An exception occurred while trying to create an" +
         " instance of the custom factory class" + ": [" +
         trim(e.getMessage()) +
         "] as specified by a system property.");
      "[LOOKUP] A security exception occurred while trying to create an" +
      " instance of the custom factory class" +
      ": [" + trim(ex.getMessage()) +
      "]. Trying alternative implementations...");

代码示例来源:origin: org.apache.openjpa/openjpa-all

if (isDiagnosticsEnabled()) {
  logDiagnostic("[LOOKUP] A security exception occurred while trying to create an" +
         " instance of the custom factory class" + ": [" + trim(e.getMessage()) +
         "]. Trying alternative implementations...");
  logDiagnostic("[LOOKUP] An exception occurred while trying to create an" +
         " instance of the custom factory class" + ": [" +
         trim(e.getMessage()) +
         "] as specified by a system property.");
      "[LOOKUP] A security exception occurred while trying to create an" +
      " instance of the custom factory class" +
      ": [" + trim(ex.getMessage()) +
      "]. Trying alternative implementations...");

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

if (isDiagnosticsEnabled()) {
  logDiagnostic("[LOOKUP] A security exception occurred while trying to create an" +
         " instance of the custom factory class" + ": [" + trim(e.getMessage()) +
         "]. Trying alternative implementations...");
  logDiagnostic("[LOOKUP] An exception occurred while trying to create an" +
         " instance of the custom factory class" + ": [" +
         trim(e.getMessage()) +
         "] as specified by a system property.");
      "[LOOKUP] A security exception occurred while trying to create an" +
      " instance of the custom factory class" +
      ": [" + trim(ex.getMessage()) +
      "]. Trying alternative implementations...");

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.logging

"[LOOKUP] A security exception occurred while trying to create an"
+ " instance of the custom factory class"
+ ": [" + trim(e.getMessage())
+ "]. Trying alternative implementations...");
"[LOOKUP] An exception occurred while trying to create an"
+ " instance of the custom factory class"
+ ": [" + trim(e.getMessage())
+ "] as specified by a system property.");
"[LOOKUP] A security exception occurred while trying to create an"
+ " instance of the custom factory class"
+ ": [" + trim(ex.getMessage())
+ "]. Trying alternative implementations...");

相关文章