public LoggingPrintWriter(final String category) { super(System.err); logger = Logger.getInstance(LogCategory.OPENEJB.createChild(category), LoggingPrintWriter.class.getName()); }
public Logger getChildLogger(final String child) { return Logger.getInstance(this.category.createChild(child), this.baseName); }
public OptionsLog() { this(Logger.getInstance(LogCategory.OPENEJB.createChild("options"), OptionsLog.class)); }
public LoggingPrintWriter(final String category) { super(System.err); logger = Logger.getInstance(LogCategory.OPENEJB.createChild(category), LoggingPrintWriter.class.getName()); }
public OptionsLog() { this(Logger.getInstance(LogCategory.OPENEJB.createChild("options"), OptionsLog.class)); }
public Logger getChildLogger(final String child) { return Logger.getInstance(this.category.createChild(child), this.baseName); }
public Logger getChildLogger(final String child) { return Logger.getInstance(this.category.createChild(child), this.baseName); }
public Logger getChildLogger(String child) { return Logger.getInstance(this.category.createChild(child), this.baseName); }
public Tracker build() { logger = Logger.getInstance(LogCategory.OPENEJB_SERVER.createChild("discovery"), Tracker.class); return new Tracker(group, heartRate, maxMissedHeartbeats, reconnectDelay, maxReconnectDelay, maxReconnectAttempts, exponentialBackoff, logger, debug); } }
protected Log getLogger() { return LogFactory.getLog(LogCategories.TRIBESTREAM.createChild("accesslog").getName()); }
public void init(Properties props) throws Exception { logger = Logger.getInstance(LogCategory.OPENEJB_SERVER.createChild("service."+getName()), "org.apache.openejb.server.util.resources"); next.init(props); }
public static void applyConcurrencyAttributes(CoreDeploymentInfo deploymentInfo, List<MethodConcurrencyInfo> methodConcurrencyInfos) throws OpenEJBException { if (deploymentInfo.isBeanManagedConcurrency()) return; methodConcurrencyInfos = MethodConcurrencyBuilder.normalize(methodConcurrencyInfos); Map<Method, MethodAttributeInfo> attributes = MethodInfoUtil.resolveAttributes(methodConcurrencyInfos, deploymentInfo); Logger log = Logger.getInstance(LogCategory.OPENEJB_STARTUP.createChild("attributes"), MethodConcurrencyBuilder.class); if (log.isDebugEnabled()) { for (Map.Entry<Method, MethodAttributeInfo> entry : attributes.entrySet()) { Method method = entry.getKey(); MethodConcurrencyInfo value = (MethodConcurrencyInfo) entry.getValue(); log.debug("Concurrency Attribute: " + method + " -- " + MethodInfoUtil.toString(value)); } } for (Map.Entry<Method, MethodAttributeInfo> entry : attributes.entrySet()) { MethodConcurrencyInfo value = (MethodConcurrencyInfo) entry.getValue(); // logger.info(entry.getKey().toString() +" "+ value.transAttribute); deploymentInfo.setMethodConcurrencyAttribute(entry.getKey(), value.concurrencyAttribute); } }
public static void applyTransactionAttributes(CoreDeploymentInfo deploymentInfo, List<MethodTransactionInfo> methodTransactionInfos) throws OpenEJBException { if (deploymentInfo.isBeanManagedTransaction()) return; methodTransactionInfos = normalize(methodTransactionInfos); Map<Method, MethodAttributeInfo> attributes = resolveAttributes(methodTransactionInfos, deploymentInfo); Logger log = Logger.getInstance(LogCategory.OPENEJB_STARTUP.createChild("attributes"), MethodTransactionBuilder.class); if (log.isDebugEnabled()) { for (Map.Entry<Method, MethodAttributeInfo> entry : attributes.entrySet()) { Method method = entry.getKey(); MethodTransactionInfo value = (MethodTransactionInfo) entry.getValue(); log.debug("Transaction Attribute: " + method + " -- " + MethodInfoUtil.toString(value)); } } for (Map.Entry<Method, MethodAttributeInfo> entry : attributes.entrySet()) { MethodTransactionInfo value = (MethodTransactionInfo) entry.getValue(); // logger.info(entry.getKey().toString() +" "+ value.transAttribute); deploymentInfo.setMethodTransactionAttribute(entry.getKey(), value.transAttribute); } }
@Override public void init(final Properties props) throws Exception { this.logger = Logger.getInstance(LogCategory.OPENEJB_SERVER.createChild("service." + getName()), "org.apache.openejb.server.util.resources"); this.debug = this.logger.isDebugEnabled(); super.init(props); }
final Logger log = Logger.getInstance(LogCategory.OPENEJB_STARTUP.createChild("attributes"), MethodConcurrencyBuilder.class);
final Logger log = Logger.getInstance(LogCategory.OPENEJB_STARTUP.createChild("attributes"), MethodConcurrencyBuilder.class);
public static void applyTransactionAttributes(final BeanContext beanContext, List<MethodTransactionInfo> methodTransactionInfos) throws OpenEJBException { if (beanContext.isBeanManagedTransaction()) { return; } methodTransactionInfos = normalize(methodTransactionInfos); final Map<MethodInfoUtil.ViewMethod, MethodAttributeInfo> attributes = resolveViewAttributes(methodTransactionInfos, beanContext); final Logger log = Logger.getInstance(LogCategory.OPENEJB_STARTUP.createChild("attributes"), MethodTransactionBuilder.class); final boolean debug = log.isDebugEnabled(); for (final Map.Entry<MethodInfoUtil.ViewMethod, MethodAttributeInfo> entry : attributes.entrySet()) { final MethodInfoUtil.ViewMethod viewMethod = entry.getKey(); final Method method = viewMethod.getMethod(); final String view = viewMethod.getView(); final MethodTransactionInfo transactionInfo = (MethodTransactionInfo) entry.getValue(); if (debug) { log.debug("Transaction Attribute: " + method + " -- " + MethodInfoUtil.toString(transactionInfo)); } beanContext.setMethodTransactionAttribute(method, TransactionType.get(transactionInfo.transAttribute), view); } }
public static void applyTransactionAttributes(final BeanContext beanContext, List<MethodTransactionInfo> methodTransactionInfos) throws OpenEJBException { if (beanContext.isBeanManagedTransaction()) { return; } methodTransactionInfos = normalize(methodTransactionInfos); final Map<MethodInfoUtil.ViewMethod, MethodAttributeInfo> attributes = resolveViewAttributes(methodTransactionInfos, beanContext); final Logger log = Logger.getInstance(LogCategory.OPENEJB_STARTUP.createChild("attributes"), MethodTransactionBuilder.class); final boolean debug = log.isDebugEnabled(); for (final Map.Entry<MethodInfoUtil.ViewMethod, MethodAttributeInfo> entry : attributes.entrySet()) { final MethodInfoUtil.ViewMethod viewMethod = entry.getKey(); final Method method = viewMethod.getMethod(); final String view = viewMethod.getView(); final MethodTransactionInfo transactionInfo = (MethodTransactionInfo) entry.getValue(); if (debug) { log.debug("Transaction Attribute: " + method + " -- " + MethodInfoUtil.toString(transactionInfo)); } beanContext.setMethodTransactionAttribute(method, TransactionType.get(transactionInfo.transAttribute), view); } }