[jboss-svn-commits] JBoss Common SVN: r3194 - in slf4j-jboss-logmanager/trunk: src and 5 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed May 20 18:22:29 EDT 2009


Author: david.lloyd at jboss.com
Date: 2009-05-20 18:22:29 -0400 (Wed, 20 May 2009)
New Revision: 3194

Added:
   slf4j-jboss-logmanager/trunk/pom.xml
   slf4j-jboss-logmanager/trunk/src/
   slf4j-jboss-logmanager/trunk/src/main/
   slf4j-jboss-logmanager/trunk/src/main/java/
   slf4j-jboss-logmanager/trunk/src/main/java/org/
   slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/
   slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/
   slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
   slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticMDCBinder.java
   slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticMarkerBinder.java
Modified:
   slf4j-jboss-logmanager/trunk/
Log:
Initial import: slf4j-jboss-logmanager


Property changes on: slf4j-jboss-logmanager/trunk
___________________________________________________________________
Name: svn:ignore
   + target


Added: slf4j-jboss-logmanager/trunk/pom.xml
===================================================================
--- slf4j-jboss-logmanager/trunk/pom.xml	                        (rev 0)
+++ slf4j-jboss-logmanager/trunk/pom.xml	2009-05-20 22:22:29 UTC (rev 3194)
@@ -0,0 +1,78 @@
+<!--
+  ~ JBoss, Home of Professional Open Source.
+  ~ Copyright 2009, Red Hat Middleware LLC, and individual contributors
+  ~ as indicated by the @author tags. See the copyright.txt file in the
+  ~ distribution for a full listing of individual contributors.
+  ~
+  ~ This is free software; you can redistribute it and/or modify it
+  ~ under the terms of the GNU Lesser General Public License as
+  ~ published by the Free Software Foundation; either version 2.1 of
+  ~ the License, or (at your option) any later version.
+  ~
+  ~ This software is distributed in the hope that it will be useful,
+  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+  ~ Lesser General Public License for more details.
+  ~
+  ~ You should have received a copy of the GNU Lesser General Public
+  ~ License along with this software; if not, write to the Free
+  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+  -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.jboss.logmanager</groupId>
+    <artifactId>jboss-logmanager-slf4j</artifactId>
+    <packaging>jar</packaging>
+    <version>1.0.0.CR1</version>
+    <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <version>2.0.2</version>
+                <configuration>
+                    <source>1.5</source>
+                    <target>1.5</target>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-source-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>attach-sources</id>
+                        <phase>verify</phase>
+                        <goals>
+                            <goal>jar</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+        <finalName>jboss-logmanager-slf4j</finalName>
+    </build>
+    <dependencies>
+        <dependency>
+            <groupId>org.jboss.logmanager</groupId>
+            <artifactId>jboss-logmanager</artifactId>
+            <version>1.1.0.CR1</version>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+            <version>1.5.6</version>
+        </dependency>
+    </dependencies>
+    <distributionManagement>
+        <repository>
+            <id>repository.jboss.org</id>
+            <name>JBoss Maven2 Repository</name>
+            <url>${repository.url}</url>
+        </repository>
+    </distributionManagement>
+</project>

Added: slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticLoggerBinder.java
===================================================================
--- slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticLoggerBinder.java	                        (rev 0)
+++ slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticLoggerBinder.java	2009-05-20 22:22:29 UTC (rev 3194)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.slf4j.impl;
+
+import org.slf4j.spi.LoggerFactoryBinder;
+import org.slf4j.ILoggerFactory;
+import org.jboss.logmanager.Slf4jLoggerFactory;
+
+public final class StaticLoggerBinder implements LoggerFactoryBinder {
+
+    public ILoggerFactory getLoggerFactory() {
+        return new Slf4jLoggerFactory();
+    }
+
+    public String getLoggerFactoryClassStr() {
+        return Slf4jLoggerFactory.class.getName();
+    }
+}

Added: slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticMDCBinder.java
===================================================================
--- slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticMDCBinder.java	                        (rev 0)
+++ slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticMDCBinder.java	2009-05-20 22:22:29 UTC (rev 3194)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.slf4j.impl;
+
+import org.slf4j.spi.MDCAdapter;
+import org.jboss.logmanager.Slf4jMDCAdapter;
+
+public final class StaticMDCBinder {
+
+    public static final StaticMDCBinder SINGLETON = new StaticMDCBinder();
+
+    private StaticMDCBinder() {
+    }
+
+    public MDCAdapter getMDCA() {
+        return new Slf4jMDCAdapter();
+    }
+
+    public String getMDCAdapterClassStr() {
+        return Slf4jMDCAdapter.class.getName();
+    }
+}

Added: slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticMarkerBinder.java
===================================================================
--- slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticMarkerBinder.java	                        (rev 0)
+++ slf4j-jboss-logmanager/trunk/src/main/java/org/slf4j/impl/StaticMarkerBinder.java	2009-05-20 22:22:29 UTC (rev 3194)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+
+package org.slf4j.impl;
+
+import org.slf4j.spi.MarkerFactoryBinder;
+import org.slf4j.IMarkerFactory;
+import org.slf4j.helpers.BasicMarkerFactory;
+
+public final class StaticMarkerBinder implements MarkerFactoryBinder {
+
+    public static final StaticMarkerBinder SINGLETON = new StaticMarkerBinder();
+
+    private final IMarkerFactory markerFactory = new BasicMarkerFactory();
+
+    private StaticMarkerBinder() {
+    }
+
+    public IMarkerFactory getMarkerFactory() {
+        return markerFactory;
+    }
+
+    public String getMarkerFactoryClassStr() {
+        return BasicMarkerFactory.class.getName();
+    }
+}




More information about the jboss-svn-commits mailing list