Author: upul
Date: Mon Apr 21 23:31:50 2008
New Revision: 15913

Log:

take *.jks, log4j.properties from distribution conf directory for bundling

Added:
   trunk/esb/java/modules/distribution/src/main/conf/identity.jks   (contents, 
props changed)
   trunk/esb/java/modules/distribution/src/main/conf/log4j.properties
   trunk/esb/java/modules/distribution/src/main/conf/trust.jks   (contents, 
props changed)
Removed:
   trunk/esb/java/modules/core/src/main/resources/log4j.properties
Modified:
   trunk/esb/java/modules/distribution/src/main/assembly/bin.xml

Modified: trunk/esb/java/modules/distribution/src/main/assembly/bin.xml
==============================================================================
--- trunk/esb/java/modules/distribution/src/main/assembly/bin.xml       
(original)
+++ trunk/esb/java/modules/distribution/src/main/assembly/bin.xml       Mon Apr 
21 23:31:50 2008
@@ -99,7 +99,7 @@
             
<outputDirectory>wso2esb-${wso2.esb.version}/webapp/docs</outputDirectory>
         </fileSet>
         <fileSet>
-            <directory>../../modules/core/src/main/resources</directory>
+            <directory>../../modules/distribution/src/main/conf</directory>
             
<outputDirectory>wso2esb-${wso2.esb.version}/webapp/WEB-INF/classes/conf
             </outputDirectory>
             <includes>

Added: trunk/esb/java/modules/distribution/src/main/conf/identity.jks
==============================================================================
Binary file. No diff available.

Added: trunk/esb/java/modules/distribution/src/main/conf/log4j.properties
==============================================================================
--- (empty file)
+++ trunk/esb/java/modules/distribution/src/main/conf/log4j.properties  Mon Apr 
21 23:31:50 2008
@@ -0,0 +1,99 @@
+#
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  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.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+#
+
+##
+# The WSO2 ESB is now able to create per-service trace logs at runtime. Thus 
while a message
+# is being processed through a Proxy service or the Synapse service (i.e. 
message mediation through
+# the 'main' sequence), tracing may be turned 'on' at any Proxy, Sequence or 
Mediator level. This
+# trace state 'flows' with the message - i.e from a trace enabled sequence to 
another sequence etc.
+# and applies to all mediators within a trace enabled sequence etc. unless 
another sequence or
+# mediator does not override and specify a different trace setting.
+##
+
+# the root category is ERROR (applies for all 3rd party JARs etc) and will be 
logged to the
+# LOG_APPENDER and the CONSOLE_APPENDER
+log4j.rootCategory=ERROR, LOG_APPENDER, CONSOLE_APPENDER, LOG_MEMORYAPPENDER
+
+# Synapse log level is info, so are transports
+log4j.category.org.apache.synapse=INFO
+log4j.category.org.apache.synapse.transport=INFO
+log4j.category.org.apache.axis2.transport=INFO
+log4j.category.org.wso2.esb=INFO
+
+# The console appender is used to display general information at console
+log4j.appender.CONSOLE_APPENDER=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE_APPENDER.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE_APPENDER.layout.ConversionPattern=%d{ISO8601} 
[%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
+
+# Configure the service logger at INFO level. Writes only 
run-time/mediation-time audit messages
+log4j.category.SERVICE_LOGGER=INFO, SERVICE_APPENDER
+log4j.additivity.SERVICE_LOGGER=false
+log4j.appender.SERVICE_APPENDER=org.apache.log4j.RollingFileAppender
+log4j.appender.SERVICE_APPENDER.File=logs/service.log
+log4j.appender.SERVICE_APPENDER.MaxFileSize=1000KB
+log4j.appender.SERVICE_APPENDER.MaxBackupIndex=10
+log4j.appender.SERVICE_APPENDER.layout=org.apache.log4j.PatternLayout
+log4j.appender.SERVICE_APPENDER.layout.ConversionPattern=%d{ISO8601} 
[%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
+
+# The trace logger dumps enough information @INFO level, but maybe pushed upto 
TRACE.
+# Writes only run-time/mediation time tracing/debug messages for messages 
passing through trace
+# enabled sequences, mediators and services. Enabling tracing on these has a 
performance impact
+log4j.category.TRACE_LOGGER=INFO, TRACE_APPENDER, TRACE_MEMORYAPPENDER
+log4j.additivity.TRACE_LOGGER=false
+log4j.appender.TRACE_APPENDER=org.apache.log4j.DailyRollingFileAppender
+log4j.appender.TRACE_APPENDER.File=logs/trace.log
+log4j.appender.TRACE_APPENDER.Append=true
+log4j.appender.TRACE_APPENDER.layout=org.apache.log4j.PatternLayout
+log4j.appender.TRACE_APPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS} 
[%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
+
+# The memory appender for trace logger
+log4j.appender.TRACE_MEMORYAPPENDER=org.wso2.utils.MemoryAppender
+log4j.appender.TRACE_MEMORYAPPENDER.bufferSize=2000
+log4j.appender.TRACE_MEMORYAPPENDER.layout=org.apache.log4j.PatternLayout
+log4j.appender.TRACE_MEMORYAPPENDER.layout.ConversionPattern=%d{HH:mm:ss,SSS} 
[%X{ip}-%X{host}] [%t] %5p %m%n
+
+# The standard log file that may be set upto DEBUG/TRACE for general purpose 
logging
+# Logs information at startup/initialization etc. and also could be used as 
the developer log
+log4j.appender.LOG_APPENDER=org.apache.log4j.RollingFileAppender
+log4j.appender.LOG_APPENDER.File=logs/wso2-esb.log
+log4j.appender.LOG_APPENDER.MaxFileSize=1000KB
+log4j.appender.LOG_APPENDER.MaxBackupIndex=10
+log4j.appender.LOG_APPENDER.layout=org.apache.log4j.PatternLayout
+log4j.appender.LOG_APPENDER.layout.ConversionPattern=%d{ISO8601} 
[%X{ip}-%X{host}] [%t] %5p %c{1} %m%n
+
+# The memory appender for logging
+log4j.appender.LOG_MEMORYAPPENDER=org.wso2.utils.MemoryAppender
+log4j.appender.LOG_MEMORYAPPENDER.bufferSize=2000
+log4j.appender.LOG_MEMORYAPPENDER.layout=org.apache.log4j.PatternLayout
+log4j.appender.LOG_MEMORYAPPENDER.layout.ConversionPattern=%5p [%d{dd MMM yyyy 
HH:mm:ss}] %x %c{1} - %m%n
+
+## Trace Logger configuration which will append to a XMPP chatroom or JID ##
+#log4j.appender.XMPP_APPENDER=org.wso2.esb.tracing.IMAppender
+#log4j.appender.XMPP_APPENDER.host=jabber.org
+#log4j.appender.XMPP_APPENDER.username=wso2esb
+#log4j.appender.XMPP_APPENDER.password=wso2esb
[EMAIL PROTECTED]
+#log4j.appender.XMPP_APPENDER.layout=org.apache.log4j.PatternLayout
+#log4j.appender.XMPP_APPENDER.layout.ConversionPattern=[%X{host}] [%t] %-5p 
[%d{HH:mm:ss,SSS}] %C{1} - %m%n
+
+#log4j.appender.SYSLOG_APPENDER=org.apache.log4j.net.SyslogAppender
+#log4j.appender.SYSLOG_APPENDER.SyslogHost=localhost
+#log4j.appender.SYSLOG_APPENDER.layout=org.apache.log4j.SimpleLayout
+#log4j.appender.SYSLOG_APPENDER.facility=LOCAL6
+#log4j.appender.SYSLOG_APPENDER.threshold=DEBUG

Added: trunk/esb/java/modules/distribution/src/main/conf/trust.jks
==============================================================================
Binary file. No diff available.

_______________________________________________
Esb-java-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/esb-java-dev

Reply via email to