directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r396331 - in /directory/trunks/apacheds/osgi: ./ changepw/src/main/resources/ dns/src/main/resources/ kerberos/src/main/resources/ ldap/src/main/resources/ loader/src/main/resources/ logger/ logger/src/ logger/src/main/ logger/src/main/reso...
Date Sun, 23 Apr 2006 22:20:58 GMT
Author: erodriguez
Date: Sun Apr 23 15:20:54 2006
New Revision: 396331

URL: http://svn.apache.org/viewcvs?rev=396331&view=rev
Log:
Changes to logging in OSGi build:
o  Added a thin SLF4J logger bundle to package and export logging packages.
o  Removed log4j.properties from all the bundles so logging can be centrally configured.
o  TODO - will have to import logging packages org.apache.log4j and org.slf4j in all bundles.

Added:
    directory/trunks/apacheds/osgi/logger/   (with props)
    directory/trunks/apacheds/osgi/logger/pom.xml   (with props)
    directory/trunks/apacheds/osgi/logger/src/
    directory/trunks/apacheds/osgi/logger/src/main/
    directory/trunks/apacheds/osgi/logger/src/main/resources/
    directory/trunks/apacheds/osgi/logger/src/main/resources/log4j.properties   (with props)
Removed:
    directory/trunks/apacheds/osgi/changepw/src/main/resources/log4j.properties
    directory/trunks/apacheds/osgi/dns/src/main/resources/log4j.properties
    directory/trunks/apacheds/osgi/kerberos/src/main/resources/log4j.properties
    directory/trunks/apacheds/osgi/ldap/src/main/resources/log4j.properties
    directory/trunks/apacheds/osgi/loader/src/main/resources/log4j.properties
    directory/trunks/apacheds/osgi/log4j.properties
    directory/trunks/apacheds/osgi/ntp/src/main/resources/log4j.properties
Modified:
    directory/trunks/apacheds/osgi/pom.xml

Propchange: directory/trunks/apacheds/osgi/logger/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun Apr 23 15:20:54 2006
@@ -0,0 +1,16 @@
+bin
+build
+target
+classes
+.classpath
+.project
+.settings
+.wtpmodules
+.deployables
+*.iml
+*.ipr
+*.iws
+*.log
+lib
+bundle
+dist

Added: directory/trunks/apacheds/osgi/logger/pom.xml
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/osgi/logger/pom.xml?rev=396331&view=auto
==============================================================================
--- directory/trunks/apacheds/osgi/logger/pom.xml (added)
+++ directory/trunks/apacheds/osgi/logger/pom.xml Sun Apr 23 15:20:54 2006
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.apache.directory.server</groupId>
+    <artifactId>build</artifactId>
+    <version>1.1.0-SNAPSHOT</version>
+  </parent>
+  <artifactId>apacheds-osgi-logger</artifactId>
+  <name>ApacheDS Logging Library Bundle</name>
+  <description>
+    The logging library packaged as an OSGi bundle.
+  </description>
+  <packaging>osgi-bundle</packaging>  
+  <dependencies>
+    <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>nlog4j</artifactId>
+      <version>1.2.19</version>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <groupId>org.apache.felix.plugins</groupId>
+        <artifactId>maven-osgi-plugin</artifactId>
+        <version>0.8.0-SNAPSHOT</version>
+        <extensions>true</extensions>
+        <configuration>
+          <osgiManifest>
+            <bundleName>ApacheDS Logging Bundle</bundleName>
+            <bundleVendor>Apache Software Foundation</bundleVendor>
+            <bundleCategory>Logging</bundleCategory>
+            <bundleDescription>
+              A bundle that registers the logging library.
+            </bundleDescription>
+            <exportPackage>
+              org.slf4j,org.apache.log4j
+            </exportPackage>
+          </osgiManifest>
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: directory/trunks/apacheds/osgi/logger/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/trunks/apacheds/osgi/logger/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/osgi/logger/src/main/resources/log4j.properties?rev=396331&view=auto
==============================================================================
--- directory/trunks/apacheds/osgi/logger/src/main/resources/log4j.properties (added)
+++ directory/trunks/apacheds/osgi/logger/src/main/resources/log4j.properties Sun Apr 23 15:20:54
2006
@@ -0,0 +1,9 @@
+# Set root logger level to DEBUG and its only appender to A1.
+log4j.rootLogger=DEBUG, A1
+
+# A1 is set to be a ConsoleAppender.
+log4j.appender.A1=org.apache.log4j.ConsoleAppender
+
+# A1 uses PatternLayout.
+log4j.appender.A1.layout=org.apache.log4j.PatternLayout
+log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

Propchange: directory/trunks/apacheds/osgi/logger/src/main/resources/log4j.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: directory/trunks/apacheds/osgi/pom.xml
URL: http://svn.apache.org/viewcvs/directory/trunks/apacheds/osgi/pom.xml?rev=396331&r1=396330&r2=396331&view=diff
==============================================================================
--- directory/trunks/apacheds/osgi/pom.xml (original)
+++ directory/trunks/apacheds/osgi/pom.xml Sun Apr 23 15:20:54 2006
@@ -19,5 +19,6 @@
     <module>loader</module>
     <module>network</module>
     <module>ntp</module>
+    <module>logger</module>
   </modules>
 </project>



Mime
View raw message