Skip to Content.
Sympa Menu

notify-dpml - r1386 - in trunk/main: metro/runtime/src/main/net/dpml/metro/runtime util/logging/src/main/net/dpml/logging

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: r1386 - in trunk/main: metro/runtime/src/main/net/dpml/metro/runtime util/logging/src/main/net/dpml/logging
  • Date: Wed, 19 Apr 2006 09:28:43 +0200

Author: mcconnell
Date: 2006-04-19 09:28:35 +0200 (Wed, 19 Apr 2006)
New Revision: 1386

Modified:

trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/StandardLogger.java
trunk/main/util/logging/src/main/net/dpml/logging/Logger.java
Log:
housekeeping

Modified:
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/StandardLogger.java
===================================================================
---
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/StandardLogger.java
2006-04-19 07:20:26 UTC (rev 1385)
+++
trunk/main/metro/runtime/src/main/net/dpml/metro/runtime/StandardLogger.java
2006-04-19 07:28:35 UTC (rev 1386)
@@ -18,9 +18,8 @@

package net.dpml.metro.runtime;

-import net.dpml.transit.monitor.LoggingAdapter;
-
import net.dpml.util.Logger;
+import net.dpml.util.DefaultLogger;

/**
* Default logging adapter.
@@ -55,7 +54,7 @@
*/
public StandardLogger( String path )
{
- m_logger = new LoggingAdapter( path );
+ m_logger = new DefaultLogger( path );
}

//
------------------------------------------------------------------------
@@ -63,7 +62,7 @@
//
------------------------------------------------------------------------

/**
- * Return TRUE is debug level logging is enabled.
+ * Return TRUE if debug level logging is enabled.
* @return the enabled state of debug logging
*/
public boolean isDebugEnabled()
@@ -72,7 +71,16 @@
}

/**
- * Return TRUE is info level logging is enabled.
+ * Return TRUE if trace level logging is enabled.
+ * @return the enabled state of trace logging
+ */
+ public boolean isTraceEnabled()
+ {
+ return m_logger.isTraceEnabled();
+ }
+
+ /**
+ * Return TRUE if info level logging is enabled.
* @return the enabled state of info logging
*/
public boolean isInfoEnabled()
@@ -81,7 +89,7 @@
}

/**
- * Return TRUE is error level logging is enabled.
+ * Return TRUE if error level logging is enabled.
* @return the enabled state of error logging
*/
public boolean isWarnEnabled()
@@ -90,7 +98,7 @@
}

/**
- * Return TRUE is error level logging is enabled.
+ * Return TRUE if error level logging is enabled.
* @return the enabled state of error logging
*/
public boolean isErrorEnabled()
@@ -99,9 +107,18 @@
}

/**
- * Log a debug message is debug mode is enabled.
+ * Log a trace message if trace mode is enabled.
* @param message the message to log
*/
+ public void trace( String message )
+ {
+ m_logger.trace( message );
+ }
+
+ /**
+ * Log a trace message if trace mode is enabled.
+ * @param message the message to log
+ */
public void debug( String message )
{
m_logger.debug( message );
@@ -153,6 +170,11 @@
m_logger.error( message, cause );
}

+ /**
+ * Return a child logger.
+ * @param category the subsidiary category path
+ * @return the subsidiary logging channel
+ */
public net.dpml.logging.Logger getChildLogger( String category )
{
if( ( null == category ) || ( "".equals( category ) ) )
@@ -161,7 +183,8 @@
}
else
{
- return new StandardLogger( m_logger.getChildLogger( category ) );
+ Logger logger = m_logger.getChildLogger( category );
+ return new StandardLogger( logger );
}
}
}

Modified: trunk/main/util/logging/src/main/net/dpml/logging/Logger.java
===================================================================
--- trunk/main/util/logging/src/main/net/dpml/logging/Logger.java
2006-04-19 07:20:26 UTC (rev 1385)
+++ trunk/main/util/logging/src/main/net/dpml/logging/Logger.java
2006-04-19 07:28:35 UTC (rev 1386)
@@ -35,6 +35,12 @@
boolean isDebugEnabled();

/**
+ * Return TRUE is trace level logging is enabled.
+ * @return the enabled state of trace logging
+ */
+ boolean isTraceEnabled();
+
+ /**
* Return TRUE is info level logging is enabled.
* @return the enabled state of info logging
*/
@@ -59,6 +65,12 @@
void debug( String message );

/**
+ * Record a trace level message.
+ * @param message the trace message to record
+ */
+ void trace( String message );
+
+ /**
* Record a informative message.
* @param message the info message to record
*/




  • r1386 - in trunk/main: metro/runtime/src/main/net/dpml/metro/runtime util/logging/src/main/net/dpml/logging, mcconnell at BerliOS, 04/19/2006

Archive powered by MHonArc 2.6.24.

Top of Page