org.esupportail.commons.services.logging.Logger.debug()方法的使用及代码示例

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

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

Logger.debug介绍

暂无

代码示例

代码示例来源:origin: org.esupportail/esup-commons2-web

/**
 * Debug any object.
 * @param logger 
 * @param title
 * @param o
 */
public static void print(final Logger logger, final String title, final Object o) {
  logger.debug("*******************************************************************");
  print(logger, title, o, 1);
  logger.debug("*******************************************************************");
}

代码示例来源:origin: org.esupportail/esup-commons2-jsf2

/**
 * Make an EL Expression.
 * EX. : #{param}
 * @param param 
 * @return String
 */
public static String makeELExpression(final String param) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("entering makeELExpression(" + param + " )");
  }
  return "#{" + param + "}";
}

代码示例来源:origin: org.esupportail/esup-commons2-dao

/**
 * @param s
 */
public void addSelect(final String s) {
  if (log.isDebugEnabled()) {
    log.debug("entering HqlQueryPojo.addSelect() with s = " + s);
  }
  if (StringUtils.hasText(s)) {
    select.add(s.trim());
  }
}

代码示例来源:origin: org.esupportail/esup-commons2-dao

/**
 * @param w
 */
public void addWhere(final String w) {
  if (log.isDebugEnabled()) {
    log.debug("entering HqlQueryPojo.addWhere() with w = " + w);
  }
  if (StringUtils.hasText(w)) {
    where.add(w.trim());
  }
}

代码示例来源:origin: org.esupportail/ects-web-jsf-shared

/**
 * @see org.esupportail.commons.domain.AbstractDomainQueryPaginator#getQueryString()
 */
protected String getQueryString() {
  if (log.isDebugEnabled()) {
    log.debug("entering UserPaginator.getQueryString()");
  }
  return "SELECT user FROM User user";
}

代码示例来源:origin: org.esupportail/esup-commons2-jsf

/**
 * Make an EL Expression.
 * EX. : #{param}
 * @param param 
 * @return String
 */
public static String makeELExpression(final String param) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("entering makeELExpression(" + param + " )");
  }
  return "#{" + param + "}";
}

代码示例来源:origin: org.esupportail/esup-commons2-dao

/**
 * @param f
 */
public void addFrom(final String f) {
  if (log.isDebugEnabled()) {
    log.debug("entering HqlQueryPojo.addFrom() with f = " + f);
  }
  if (StringUtils.hasText(f)) {
    from.add(f.trim());
  }
}

代码示例来源:origin: org.esupportail/example-web-jsf-shared

/**
 * @see org.esupportail.commons.domain.AbstractDomainQueryPaginator#getQueryString()
 */
protected String getQueryString() {
  if (log.isDebugEnabled()) {
    log.debug("entering UserPaginator.getQueryString()");
  }
  return "SELECT user FROM User user";
}

代码示例来源:origin: org.esupportail/example-domain-services

/**
 * @see org.springframework.beans.factory.InitializingBean#afterPropertiesSet()
 */
@Override
public void afterPropertiesSet() throws Exception {
  logger.debug("in afterPropertiesSet");
  Assert.notNull(this.daoService, 
      "property daoService of class " + this.getClass().getName() + " can not be null");
}

代码示例来源:origin: org.esupportail/esup-commons2-annotations

/**
 * @param key
 * @return a call result.
 * @see java.util.HashMap#get(java.lang.Object)
 */
public CallResult get(final String key) {
  CallResult callResult = super.get(key);
  if (logger.isDebugEnabled()) {
    logger.debug("GET FROM " + keySet().size() + "\t" + key + callResult);
  }
  return callResult;
}

代码示例来源:origin: org.esupportail/ects-web-jsf-shared

/**
 * @see org.esupportail.commons.web.beans.AbstractPaginator#reset()
 */

public void reset() {
  if (log.isDebugEnabled()) {
    log.debug("entering UserPaginator.reset()");
  }
  super.reset();
}

代码示例来源:origin: org.esupportail/esup-commons2-jsf

@Override
public void encodeBegin(final FacesContext arg0)  {
  if (logger.isDebugEnabled()) {
    logger.debug("Entered encodeBegin for client-Id: " + getId());
  }
  List<UIComponent> allchildren = makePaginator(arg0.getApplication());
  this.getChildren().addAll(allchildren);
  if (logger.isDebugEnabled()) {
    logger.debug("Exited encodeBegin");
  }
}

代码示例来源:origin: org.esupportail/esup-commons2-hibernate

/**
 * Commit current transactions.
 */
public static void commit() {
  if (LOG.isDebugEnabled()) {
    LOG.debug("COMMIT");
  }
  end(true);
}

代码示例来源:origin: org.esupportail/esup-commons2-hibernate

/**
 * Rollback current transactions.
 */
public static void rollback() {
  if (LOG.isDebugEnabled()) {
    LOG.debug("ROLLBACK");
  }
  end(false);
}

代码示例来源:origin: org.esupportail/esup-commons2-jsf2

@Override
public void encodeBegin(final FacesContext arg0)  {
  if (logger.isDebugEnabled()) {
    logger.debug("Entered encodeBegin for client-Id: " + getId());
  }
  List<UIComponent> allchildren = makePaginator(arg0.getApplication());
  this.getChildren().addAll(allchildren);
  if (logger.isDebugEnabled()) {
    logger.debug("Exited encodeBegin");
  }
}

代码示例来源:origin: org.esupportail/esup-commons2-hibernate

/**
 * End current transactions.
 * @param commit true to commit the current transaction, false to rollback
 */
private static void end(final boolean commit) {
  if (LOG.isDebugEnabled()) {
    LOG.debug("END(" + commit + ")");
  }
  getDatabaseManagerStore().end(commit);
}

代码示例来源:origin: org.esupportail/esup-commons2-hibernate

/**
 * Begin transactions (for transactionnal managers only).
 */
public static void begin() {
  if (LOG.isDebugEnabled()) {
    LOG.debug("BEGIN");
  }
  getDatabaseManagerStore().begin();
}

代码示例来源:origin: org.esupportail/esup-commons2-jsf-portlet

@Override
public void beforePhase(PhaseEvent event) {
  logger.debug("In beforePhase");
  if (event.getPhaseId().equals(PhaseId.RESTORE_VIEW)) {
    FacesContext context = event.getFacesContext();
    PortletRequest request = (PortletRequest) context.getExternalContext().getRequest();
    ContextUtils.exposeRequest(request);
    JpaUtils.exposeEntityManager(request);
  }
}

代码示例来源:origin: org.esupportail/esup-commons2-jsf-portlet

@Override
public void afterPhase(PhaseEvent event) {
  logger.debug("In afterPhase");
  FacesContext context = event.getFacesContext();
  if (event.getPhaseId().equals(PhaseId.RENDER_RESPONSE) || context.getResponseComplete()
      || (!event.getPhaseId().equals(PhaseId.RESTORE_VIEW) && context.getRenderResponse())) {
    PortletRequest request = (PortletRequest) context.getExternalContext().getRequest();
    ContextUtils.unexposeRequest(request);
  }
}

代码示例来源:origin: org.esupportail/esup-commons2-jsf-portlet

@Override
public void afterPhase(PhaseEvent event) {
  logger.debug("In afterPhase");
  FacesContext context = event.getFacesContext();
  if (event.getPhaseId().equals(PhaseId.RENDER_RESPONSE) || context.getResponseComplete()
      || (!event.getPhaseId().equals(PhaseId.RESTORE_VIEW) && context.getRenderResponse())) {
    PortletRequest request = (PortletRequest) context.getExternalContext().getRequest();
    JpaUtils.unexposeEntityManager(request);
    ContextUtils.unexposeRequest(request);
  }
}

相关文章