org.seasar.framework.log.Logger.debug()方法的使用及代码示例

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

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

Logger.debug介绍

[英]DEBUG情報を出力します。
[中]调试情報を出力します。

代码示例

代码示例来源:origin: net.arnx/jsonic

  1. @Override
  2. public void debug(String message, Throwable e) {
  3. if (e != null) {
  4. log.debug(message, e);
  5. } else {
  6. log.debug(message);
  7. }
  8. }

代码示例来源:origin: org.seasar.mai/s2mai

  1. public void send(Mail mail, SendMail sendMail) {
  2. logger.debug("send mail...");
  3. logger.debug(mail);
  4. try {
  5. sendMail.send(mail);
  6. } catch (MailException e) {
  7. mailExceptionHandler.handle(e);
  8. }
  9. logger.debug("success send mail.");
  10. }

代码示例来源:origin: org.seasar.teeda/teeda-core

  1. protected void printEnvironmentInfo() {
  2. for (Iterator itr = EnvironmentInfo.getEnvironmentInfo().iterator(); itr
  3. .hasNext();) {
  4. logger.debug(itr.next());
  5. }
  6. }
  7. }

代码示例来源:origin: org.seasar.portlet/s2-portlet

  1. public void destroy() {
  2. if (logger.isDebugEnabled()) {
  3. logger.debug("calling HotdeployPortletFilter#destroy().");
  4. }
  5. }

代码示例来源:origin: org.seasar.teeda/teeda-core

  1. public void dispatch(String requestURI) throws IOException, FacesException {
  2. if (logger_.isDebugEnabled()) {
  3. logger_.debug("dispatch called.");
  4. }
  5. }

代码示例来源:origin: org.seasar.portlet/s2-portlet

  1. public void init(PortletFilterConfig filterConfig) throws PortletException {
  2. if (logger.isDebugEnabled()) {
  3. logger
  4. .debug("calling HotdeployPortletFilter#init(PortletFilterConfig).");
  5. }
  6. }

代码示例来源:origin: org.seasar.buri/s2-buri

  1. protected void serviceTerminate() {
  2. if(logger.isDebugEnabled()) {
  3. logger.debug("END "+serviceName);
  4. }
  5. }

代码示例来源:origin: org.seasar.container/s2-framework

  1. public void contextInitialized(ServletContextEvent event) {
  2. logger.debug("S2Container initialize start");
  3. ServletContext servletContext = event.getServletContext();
  4. try {
  5. initializeContainer(servletContext);
  6. } catch (RuntimeException e) {
  7. logger.log(e);
  8. throw e;
  9. }
  10. logger.debug("S2Container initialize end");
  11. }

代码示例来源:origin: org.seasar.teeda/teeda-core

  1. public void log(String message) {
  2. AssertionUtil.assertNotNull("message is null.", message);
  3. context.log(message);
  4. logger.debug(message);
  5. }

代码示例来源:origin: org.seasar.struts/s2-struts

  1. public Object invoke(MethodInvocation invocation) throws Throwable {
  2. HttpServletRequest request = (HttpServletRequest) invocation.getArguments()[0];
  3. ActionMapping mapping = (ActionMapping) invocation.getArguments()[3];
  4. if (S2StrutsContextUtil.isCancel(request, mapping)) {
  5. log.debug(" Cancelled transaction, skipping validation");
  6. return Boolean.TRUE;
  7. }
  8. return invocation.proceed();
  9. }

代码示例来源:origin: org.seasar.portlet/s2-portlet

  1. public void destroy() {
  2. // do not destroy S2Container because S2Container is shared.
  3. // SingletonS2ContainerFactory.destroy();
  4. if (logger.isDebugEnabled()) {
  5. logger.debug("calling S2PortletFilter#destroy().");
  6. }
  7. }

代码示例来源:origin: org.seasar.teeda/teeda-core

  1. public void afterPhase(PhaseEvent event) {
  2. if (_log.isDebugEnabled()) {
  3. _log.debug("after: " + event.getPhaseId() + ", " + event);
  4. }
  5. }

代码示例来源:origin: org.seasar.buri/s2-buri

  1. public void terminate() {
  2. monitor.setTerminate(serviceName);
  3. isTerminate = false;
  4. if(logger.isDebugEnabled()) {
  5. logger.debug("terminate "+serviceName);
  6. }
  7. }

代码示例来源:origin: org.seasar.buri/s2-buri

  1. public void destroyService() {
  2. if(logger.isDebugEnabled()) {
  3. logger.debug("destroyService");
  4. }
  5. List smNames = monitor.getServiceNames();
  6. Iterator ite = smNames.iterator();
  7. while(ite.hasNext()) {
  8. String smName = ite.next().toString();
  9. ServiceInfo info = monitor.getServiceInfo(smName);
  10. info.getExecuteService().terminate();
  11. }
  12. }

代码示例来源:origin: org.seasar.teeda/teeda-core

  1. private void printAfter(FacesContext context) {
  2. SPrintWriter writer = new SPrintWriter();
  3. writer.println(getClass().getName() + " after");
  4. dumpTree(writer, context);
  5. logger_.debug(writer.toString());
  6. }

代码示例来源:origin: org.seasar.cms.ymir/ymir

  1. Response adjustResponse(Request request, Response response, Object component) {
  2. if (response.getType() == Response.TYPE_PASSTHROUGH) {
  3. response = constructDefaultResponse(request, component);
  4. }
  5. if (logger_.isDebugEnabled()) {
  6. logger_.debug("[4]RESPONSE: " + response);
  7. }
  8. return response;
  9. }

代码示例来源:origin: org.seasar.buri/s2-buri

  1. protected void statusIsTerminate(ServiceInfo info,String smName) {
  2. if(info.getThread().isAlive() == false && info.getOneService().canReExecute() == true) {
  3. manager.executeService(smName);
  4. if(logger.isDebugEnabled()) {
  5. logger.debug("statusUpdate reRun" + info);
  6. }
  7. }
  8. }

代码示例来源:origin: org.seasar.struts/s2-struts

  1. private void registerActionForm(ModuleConfig config, Class clazz) {
  2. FormBeanConfig formConfig = this.formConfigCreator.createFormBeanConfig(config, clazz);
  3. if (formConfig != null) {
  4. if (!registeredActionForm(config, formConfig)) {
  5. config.addFormBeanConfig(formConfig);
  6. if (log.isDebugEnabled()) {
  7. log.debug("auto register " + formConfig);
  8. }
  9. }
  10. }
  11. }

代码示例来源:origin: org.seasar.struts/s2-struts

  1. public boolean execute(ActionContext actionContext) throws Exception {
  2. ActionMapping mapping = (ActionMapping) actionContext.getActionConfig();
  3. ServletActionContext saContext = (ServletActionContext) actionContext;
  4. HttpServletRequest request = saContext.getRequest();
  5. if (S2StrutsContextUtil.isCancel(request, mapping)) {
  6. log.debug(" Cancelled transaction, skipping validation");
  7. ActionMappingWrapper wrapper = new ActionMappingWrapper(mapping);
  8. wrapper.setValidate(false);
  9. actionContext.setActionConfig(wrapper);
  10. }
  11. return false;
  12. }

代码示例来源:origin: org.seasar.buri/s2-buri

  1. protected void stopCheckAndTerminate(ServiceInfo info) {
  2. if(info.getOneService().getStopCheckInterval() <= 0) {
  3. return;
  4. }
  5. long aliveCheck = getTimeInMillis() - info.getStatusUpdateTime();
  6. if(aliveCheck >= info.getOneService().getStopCheckInterval() ) {
  7. info.getExecuteService().terminate();
  8. if(logger.isDebugEnabled()) {
  9. logger.debug("statusUpdate TimeOrver" + info);
  10. }
  11. }
  12. }

相关文章