activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1081827 - in /activemq/activemq-apollo/trunk/apollo-cli/src/test: resources/log4j.properties scala/org/apache/activemq/apollo/cli/ApolloIDERunner.scala
Date Tue, 15 Mar 2011 16:07:45 GMT
Author: chirino
Date: Tue Mar 15 16:07:45 2011
New Revision: 1081827

URL: http://svn.apache.org/viewvc?rev=1081827&view=rev
Log:
Simplify launching of Apollo from an IDE.

Modified:
    activemq/activemq-apollo/trunk/apollo-cli/src/test/resources/log4j.properties
    activemq/activemq-apollo/trunk/apollo-cli/src/test/scala/org/apache/activemq/apollo/cli/ApolloIDERunner.scala

Modified: activemq/activemq-apollo/trunk/apollo-cli/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-cli/src/test/resources/log4j.properties?rev=1081827&r1=1081826&r2=1081827&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-cli/src/test/resources/log4j.properties (original)
+++ activemq/activemq-apollo/trunk/apollo-cli/src/test/resources/log4j.properties Tue Mar
15 16:07:45 2011
@@ -5,9 +5,9 @@
 ## The ASF licenses this file to You under the Apache License, Version 2.0
 ## (the "License"); you may not use this file except in compliance with
 ## the License.  You may obtain a copy of the License at
-##
+## 
 ## http://www.apache.org/licenses/LICENSE-2.0
-##
+## 
 ## Unless required by applicable law or agreed to in writing, software
 ## distributed under the License is distributed on an "AS IS" BASIS,
 ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -18,17 +18,21 @@
 #
 # Setup the default logging levels
 #
-log4j.rootLogger=WARN, console, logfile
-log4j.logger.org.apache.activemq.apollo=INFO
+log4j.rootLogger=ERROR
+log4j.logger.org.apache.activemq.apollo=INFO, apollo
+
+log4j.logger.console=INFO, console, apollo
+log4j.logger.security=INFO, security
+log4j.logger.connection=INFO, connection
 
 #
 # Uncomment one of the following to enable debug logging
 #
-# log4j.logger.org.apache.activemq.apollo=DEBUG
 # log4j.logger.org.apache.activemq.apollo.broker=DEBUG
+# log4j.logger.org.apache.activemq.apollo.broker.store=DEBUG
+# log4j.logger.org.apache.activemq.apollo.stomp=DEBUG
 # log4j.logger.org.apache.activemq.apollo.web=DEBUG
 # log4j.logger.org.apache.activemq.apollo.cli=DEBUG
-# log4j.logger.org.apache.activemq.apollo.broker.store.hawtdb=DEBUG
 
 # Console Settings
 log4j.appender.console=org.apache.log4j.ConsoleAppender
@@ -37,10 +41,26 @@ log4j.appender.console.layout.Conversion
 log4j.appender.console.threshold=INFO
 
 # File Settings
-log4j.appender.logfile=org.apache.log4j.RollingFileAppender
-log4j.appender.logfile.file=${apollo.base}/log/apollo.log
-log4j.appender.logfile.maxFileSize=5MB
-log4j.appender.logfile.maxBackupIndex=5
-log4j.appender.logfile.append=true
-log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
-log4j.appender.logfile.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n
+log4j.appender.apollo=org.apache.log4j.RollingFileAppender
+log4j.appender.apollo.file=${apollo.base}/log/apollo.log
+log4j.appender.apollo.maxFileSize=5MB
+log4j.appender.apollo.maxBackupIndex=5
+log4j.appender.apollo.append=true
+log4j.appender.apollo.layout=org.apache.log4j.PatternLayout
+log4j.appender.apollo.layout.ConversionPattern=%d | %-5p | %m | %c | %t%n
+
+log4j.appender.connection=org.apache.log4j.RollingFileAppender
+log4j.appender.connection.file=${apollo.base}/log/connection.log
+log4j.appender.connection.maxFileSize=5MB
+log4j.appender.connection.maxBackupIndex=5
+log4j.appender.connection.append=true
+log4j.appender.connection.layout=org.apache.log4j.PatternLayout
+log4j.appender.connection.layout.ConversionPattern=%d %m%n
+
+log4j.appender.security=org.apache.log4j.RollingFileAppender
+log4j.appender.security.file=${apollo.base}/log/security.log
+log4j.appender.security.maxFileSize=5MB
+log4j.appender.security.maxBackupIndex=5
+log4j.appender.security.append=true
+log4j.appender.security.layout=org.apache.log4j.PatternLayout
+log4j.appender.security.layout.ConversionPattern=%d %m%n

Modified: activemq/activemq-apollo/trunk/apollo-cli/src/test/scala/org/apache/activemq/apollo/cli/ApolloIDERunner.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-cli/src/test/scala/org/apache/activemq/apollo/cli/ApolloIDERunner.scala?rev=1081827&r1=1081826&r2=1081827&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-cli/src/test/scala/org/apache/activemq/apollo/cli/ApolloIDERunner.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-cli/src/test/scala/org/apache/activemq/apollo/cli/ApolloIDERunner.scala
Tue Mar 15 16:07:45 2011
@@ -16,9 +16,8 @@
  */
 package org.apache.activemq.apollo.cli
 
-import org.junit.Test
 import java.io.File
-;
+import org.apache.activemq.apollo.util.FileSupport._
 
 /**
  * <p>
@@ -29,27 +28,15 @@ import java.io.File
  * @author <a href="http://hiramchirino.com">Hiram Chirino</a>
  */
 object ApolloIDERunner  {
-  def main(args:Array[String]) = new ApolloIDERunner().run
-}
 
-/**
- * The broker can be launchedas a Junit test case, that way IDE's can auto configure
- * the proper classpath.
- *
- * @author <a href="http://hiramchirino.com">Hiram Chirino</a>
- */
-class ApolloIDERunner  {
-
-  import org.apache.activemq.apollo.util.FileSupport._
+  // We use this to figure out where the source code is in the files system.
+  def project_base = new File(getClass.getResource("banner.txt").toURI.resolve("../../../../../../../..").toURL.getFile)
 
-  @Test
-  def run:Unit = {
+  def main(args:Array[String]):Unit = {
 
     // Let the user know where he configure logging at.
     println("Logging was configured using '%s'.".format(getClass.getClassLoader.getResource("log4j.properties")));
 
-    // We use this to figure out where the source code is in the files system.
-    def project_base = new File(getClass.getResource("banner.txt").toURI.resolve("../../../../../../../..").toURL.getFile)
 
     // Setups where the broker base directory is...
     if( System.getProperty("apollo.base") == null ) {



Mime
View raw message