You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2010/11/25 17:50:37 UTC
svn commit: r1039093 - in /directory/studio/trunk:
libraries/org.apache.logging.log4j/pom.xml plugins/common.core/pom.xml
plugins/common.core/src/main/resources/log4j.properties
Author: pamarcelot
Date: Thu Nov 25 16:50:37 2010
New Revision: 1039093
URL: http://svn.apache.org/viewvc?rev=1039093&view=rev
Log:
Fixed an issue where a default logger was set to DEBUG level when configuration was done (which caused speed issues on some 'shared-ldap' classes).
A 'log4j.properties' file (with logging turned off) has been added to the 'common.core' plugin which shares the same classloader as the 'org.apache.logging.log4j' plugin (to make the file accessible to log4j).
Added:
directory/studio/trunk/plugins/common.core/src/main/resources/log4j.properties
Modified:
directory/studio/trunk/libraries/org.apache.logging.log4j/pom.xml
directory/studio/trunk/plugins/common.core/pom.xml
Modified: directory/studio/trunk/libraries/org.apache.logging.log4j/pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/libraries/org.apache.logging.log4j/pom.xml?rev=1039093&r1=1039092&r2=1039093&view=diff
==============================================================================
--- directory/studio/trunk/libraries/org.apache.logging.log4j/pom.xml (original)
+++ directory/studio/trunk/libraries/org.apache.logging.log4j/pom.xml Thu Nov 25 16:50:37 2010
@@ -86,6 +86,7 @@
<manifestLocation>META-INF</manifestLocation>
<instructions>
<Bundle-SymbolicName>${artifactId}</Bundle-SymbolicName>
+ <Eclipse-BuddyPolicy>registered</Eclipse-BuddyPolicy>
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
<Embed-Directory>lib</Embed-Directory>
<Embed-StripGroup>true</Embed-StripGroup>
Modified: directory/studio/trunk/plugins/common.core/pom.xml
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.core/pom.xml?rev=1039093&r1=1039092&r2=1039093&view=diff
==============================================================================
--- directory/studio/trunk/plugins/common.core/pom.xml (original)
+++ directory/studio/trunk/plugins/common.core/pom.xml Thu Nov 25 16:50:37 2010
@@ -98,9 +98,11 @@
<manifestLocation>META-INF</manifestLocation>
<instructions>
<Bundle-SymbolicName>${groupId}.${artifactId};singleton:=true</Bundle-SymbolicName>
+ <Eclipse-RegisterBuddy>org.apache.logging.log4j</Eclipse-RegisterBuddy>
<Bundle-Localization>plugin</Bundle-Localization>
<Eclipse-LazyStart>true</Eclipse-LazyStart>
<Require-Bundle>org.apache.commons.lang;bundle-version="${org.apache.commons.lang.version}",
+ org.apache.logging.log4j;bundle-version="${org.apache.logging.log4j.version}",
org.eclipse.core.runtime</Require-Bundle>
<Export-Package>org.apache.directory.studio.*</Export-Package>
<Import-Package>!</Import-Package>
Added: directory/studio/trunk/plugins/common.core/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/directory/studio/trunk/plugins/common.core/src/main/resources/log4j.properties?rev=1039093&view=auto
==============================================================================
--- directory/studio/trunk/plugins/common.core/src/main/resources/log4j.properties (added)
+++ directory/studio/trunk/plugins/common.core/src/main/resources/log4j.properties Thu Nov 25 16:50:37 2010
@@ -0,0 +1,22 @@
+#############################################################################
+# 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.
+#############################################################################
+log4j.rootCategory=OFF, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+