From 04dfafe19f0d3687d0f0b3e51d2d5bf3d19b58bf Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Wed, 07 Mar 2007 23:38:55 +0000
Subject: [PATCH] Enable AspectJ weaving for the new debug logging framework: - This commit does not allow for configuring the debug logger over protocol. It can only be configured on server startup using properties. - The settings specified during startup will remain in effect for the duration of the server. - All messages are printed to standard out. - Weaving could be turned off with the -DDEBUG_BUILD=false property when building the server. - By default, the debug logger is off on server startup. It could be enabled by using the -Dorg.opends.server.debug.enabled=true. - Debug targets may be defined with the -Dorg.opends.server.debug.target property. The syntax of this property can be found on the opends.dev.java.net documentation section. - Debug logging is turned on by default on unit tests and printed on test failure.  - Default debug target for unit tests could be changed by using the -Dorg.opends.test.debug.target property.

---
 opends/src/server/org/opends/server/loggers/AsyncronousLogPublisher.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/opends/src/server/org/opends/server/loggers/AsyncronousLogPublisher.java b/opends/src/server/org/opends/server/loggers/AsyncronousLogPublisher.java
index 8670895..3cff741 100644
--- a/opends/src/server/org/opends/server/loggers/AsyncronousLogPublisher.java
+++ b/opends/src/server/org/opends/server/loggers/AsyncronousLogPublisher.java
@@ -61,9 +61,9 @@
   private static class PublishRequest
   {
     public final LogRecord record;
-    public final LogErrorHandler handler;
+    public final LoggerErrorHandler handler;
 
-    PublishRequest(LogRecord record, LogErrorHandler handler)
+    PublishRequest(LogRecord record, LoggerErrorHandler handler)
     {
       this.record = record;
       this.handler = handler;
@@ -129,7 +129,7 @@
         catch (Throwable t) {
           // Forward exception to error handler
           if (request != null  && request.handler != null) {
-            LogErrorHandler handler= request.handler;
+            LoggerErrorHandler handler= request.handler;
             handler.handleError(request.record, t);
           }
         }
@@ -141,7 +141,7 @@
   // want shutdown to start after we check for it, but before we queue
   // request.
   private synchronized void publishAsynchronously(LogRecord record,
-                                                  LogErrorHandler handler)
+                                                  LoggerErrorHandler handler)
   {
     // If shutting down reject, otherwise publish (if we have a publisher!)
     if (isShuttingDown()) {
@@ -167,7 +167,7 @@
    * @param record the log record to publish.
    * @param handler the error handler to use if an error occurs.
    */
-  public void publish(LogRecord record, LogErrorHandler handler)
+  public void publish(LogRecord record, LoggerErrorHandler handler)
   {
     // No publisher?  Off to the bit bucket.
     if (publisher != null) {

--
Gitblit v1.10.0