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

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

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

Logger.log介绍

[英]ログを出力します。
[中]ログを出力します。

代码示例

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

  1. /**
  2. * ログを出力します。
  3. *
  4. * @param messageCode
  5. * @param args
  6. */
  7. public final void log(String messageCode, Object[] args) {
  8. log(messageCode, args, null);
  9. }

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

  1. /**
  2. * 結果が1件でない場合の処理を行います。 デフォルトでは警告ログを出力します。
  3. */
  4. protected void handleNotSingleResult() {
  5. logger.log("WDAO0003", null);
  6. }

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

  1. /**
  2. * 結果が1件でない場合の処理を行います。
  3. * デフォルトでは警告ログを出力します。
  4. */
  5. protected void handleNotSingleResult() {
  6. logger.log("WDAO0003", null);
  7. }

代码示例来源:origin: org.seasar.jca/s2jca

  1. /**
  2. * {@link ActivationSpec}をデプロイした情報をログに出力します.
  3. */
  4. protected void loggingDeployedMessage() {
  5. final StringBuilder buf = new StringBuilder();
  6. buf.append("\t").append("activationspec-class : ").append(activationSpecClassName).append(
  7. LINE_SEPARATOR);
  8. loggingConfigProperties(configProperties, "\t", buf);
  9. buf.append("\t").append(activationSpec).append(LINE_SEPARATOR);
  10. logger.log("DJCA1019", new Object[] { new String(buf) });
  11. }

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

  1. protected final Object invokeServiceMethod(final Object service,
  2. final String methodName, final Object[] args) throws Throwable {
  3. final BeanDesc beanDesc = BeanDescFactory.getBeanDesc(service
  4. .getClass());
  5. try {
  6. logger.log("DFLX0201",new Object[]{service.getClass().getName(),methodName});
  7. return beanDesc.invoke(service, methodName, args);
  8. } catch (final Throwable throwable) {
  9. logger.log("EFLX0201",new Object[]{service.getClass().getName(),methodName},throwable);
  10. throw throwable;
  11. }
  12. }

代码示例来源:origin: com.github.ns2j/nos2jdbc-core

  1. public void afterCompletion(final int status) {
  2. for (int i = 0; i < interposedSynchronizations.size(); ++i) {
  3. final Synchronization sync = (Synchronization) interposedSynchronizations
  4. .get(i);
  5. try {
  6. sync.afterCompletion(status);
  7. } catch (final Throwable t) {
  8. logger.log(t);
  9. }
  10. }
  11. transactionContexts.remove(tx);
  12. }

代码示例来源:origin: org.seasar.jca/s2jca

  1. /**
  2. * {@link #beforeDelivery(Method)}が呼び出されて正常に終了していなければ例外をスローします.
  3. *
  4. * @throws IllegalStateException
  5. * {@link #beforeDelivery(Method)}が呼び出されて正常に終了していない場合
  6. */
  7. protected void assertBeforeDeliveryCalled() throws IllegalStateException {
  8. if (!beforeDeliveryCalled) {
  9. logger.log("EJCA1028", new Object[] { this });
  10. throw new SIllegalStateException("EJCA1028", new Object[] { this });
  11. }
  12. }

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

  1. private final void processExport(final Object target) {
  2. final Storage storage = storageLocator.getStorage(SERVICE_DATA_STORAGE);
  3. final Object[] logArgs = new Object[] { storage.getName() };
  4. logger.log("DFLX0303", logArgs);
  5. transfer.exportToStorage(target, storage);
  6. logger.log("DFLX0304", logArgs);
  7. }

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

  1. private final void processImport(final Object target) {
  2. final Storage storage = storageLocator.getStorage(SERVICE_DATA_STORAGE);
  3. final Object[] logArgs = new Object[] { storage.getName() };
  4. logger.log("DFLX0301", logArgs);
  5. transfer.importToComponent(storage, target);
  6. logger.log("DFLX0302", logArgs);
  7. }
  8. }

代码示例来源:origin: com.github.ns2j/nos2jdbc-core

  1. public void setRollbackOnly() {
  2. try {
  3. if (userTransaction.getStatus() == STATUS_ACTIVE) {
  4. userTransaction.setRollbackOnly();
  5. }
  6. } catch (final Exception e) {
  7. logger.log("ESSR0017", new Object[] { e.getMessage() }, e);
  8. }
  9. }

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

  1. /**
  2. * HOT deployクラスローダを破棄します。
  3. */
  4. public void finish() {
  5. componentDefCache.clear();
  6. hotdeployClassLoader = null;
  7. DisposableUtil.dispose();
  8. if (logger.isDebugEnabled()) {
  9. logger.log("DSSR0109", null);
  10. }
  11. }

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

  1. protected void doBind(ComponentDef componentDef, Field field,
  2. Object component) {
  3. if (!bindAuto(componentDef, field, component)
  4. && BindingUtil.isAutoBindable(field.getType())) {
  5. logger.log("WSSR0008", new Object[] {
  6. BindingUtil.getComponentClass(componentDef, component)
  7. .getName(), field.getName() });
  8. }
  9. }

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

  1. public void setExpression(String cronExpression) {
  2. try {
  3. this.expression = new CronExpression(cronExpression);
  4. } catch (ParseException e) {
  5. log.log("ECHRONOS0200", null);
  6. throw new ParseRuntimeException(e);
  7. }
  8. }

代码示例来源:origin: org.seasar.jca/s2jca

  1. public void release() {
  2. assertNotProcessing();
  3. cleanup();
  4. logger.log("DJCA1033", new Object[] { this });
  5. }

代码示例来源:origin: com.github.ns2j/nos2jdbc-core

  1. /**
  2. * トランザクションを開始します。
  3. *
  4. */
  5. public void begin() throws NotSupportedException, SystemException {
  6. status = Status.STATUS_ACTIVE;
  7. init();
  8. if (logger.isDebugEnabled()) {
  9. logger.log("DSSR0003", new Object[] { this });
  10. }
  11. }

代码示例来源: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.jca/s2jca

  1. public void release(final ManagedConnection mc) throws ResourceException {
  2. mc.removeConnectionEventListener(listener);
  3. mc.destroy();
  4. if (logger.isDebugEnabled()) {
  5. logger.log("DJCA1004", new Object[] { mc });
  6. }
  7. }

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

  1. protected void doBind(ComponentDef componentDef, PropertyDesc propertyDesc,
  2. Object component) {
  3. if (!bindAuto(componentDef, propertyDesc, component)
  4. && BindingUtil.isAutoBindable(propertyDesc.getPropertyType())) {
  5. logger.log("WSSR0008", new Object[] {
  6. BindingUtil.getComponentClass(componentDef, component)
  7. .getName(), propertyDesc.getPropertyName() });
  8. }
  9. }
  10. }

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

  1. private void taskExecute(TaskExecutorService tes, String nextTaskName)
  2. throws InterruptedException {
  3. try {
  4. tes.execute(nextTaskName);
  5. tes.waitOne();
  6. } catch (RejectedExecutionException ex) {
  7. final String taskName = tes.getTaskPropertyReader().getTaskName(
  8. null);
  9. log.log("ECHRONOS0002", new Object[] { taskName }, ex);
  10. }
  11. }

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

  1. public void delete(String siteName, String pagePath) {
  2. String uri = pageUri(siteName, pagePath);
  3. SlideToken token = createNewSlideToken();
  4. try {
  5. macro.delete(token, uri, new MacroParameters(true, true));
  6. } catch (DeleteMacroException e) {
  7. log.log("ETGW0009", new Object[] { uri });
  8. e.printStackTrace();
  9. }
  10. }

相关文章