donaldp 01/03/26 22:08:48
Modified: src/java/org/apache/log LogKit.java Logger.java
Log:
Backwards compatability for Jon ;)
Revision Changes Path
1.3 +5 -0 jakarta-avalon-logkit/src/java/org/apache/log/LogKit.java
Index: LogKit.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/LogKit.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- LogKit.java 2001/03/27 04:20:53 1.2
+++ LogKit.java 2001/03/27 06:08:48 1.3
@@ -79,6 +79,11 @@
}
*/
+ public static LogEngine getDefaultLogEngine()
+ {
+ return c_engine;
+ }
+
/**
* Add a named log target to global list.
*
1.3 +49 -7 jakarta-avalon-logkit/src/java/org/apache/log/Logger.java
Index: Logger.java
===================================================================
RCS file: /home/cvs/jakarta-avalon-logkit/src/java/org/apache/log/Logger.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Logger.java 2001/03/27 04:20:53 1.2
+++ Logger.java 2001/03/27 06:08:48 1.3
@@ -22,11 +22,53 @@
protected LogTarget[] m_logTargets;
/**
+ * Constructor.
+ *
+ * @deprecated This method should not be called directly but instead use a
LogEngine or LogKit
+ */
+ public Logger( final Category category )
+ {
+ this( LogKit.getDefaultLogEngine(), category, null, null );
+ }
+
+ /**
+ * Constructor.
+ *
+ * @deprecated This method should not be called directly but instead use a
LogEngine or LogKit
+ */
+ public Logger( final Category category, final LogTarget[] logTargets )
+ {
+ this( LogKit.getDefaultLogEngine(), category, logTargets, null );
+ }
+
+ /**
+ * Constructor.
+ *
+ * @deprecated This method should not be called directly but instead use a
LogEngine or LogKit
+ */
+ public Logger( final Category category, final Logger parent )
+ {
+ this( LogKit.getDefaultLogEngine(), category, null, parent );
+ }
+
+ /**
+ * Constructor.
+ *
+ * @deprecated This method should not be called directly but instead use a
LogEngine or LogKit
+ */
+ public Logger( final Category category,
+ final LogTarget[] logTargets,
+ final Logger parent )
+ {
+ this( LogKit.getDefaultLogEngine(), category, logTargets, parent );
+ }
+
+ /**
* Constructor taking a category.
*
* @param category the category
*/
- public Logger( final LogEngine engine, final Category category )
+ protected Logger( final LogEngine engine, final Category category )
{
this( engine, category, null, null );
}
@@ -37,20 +79,20 @@
* @param category the category
* @param logTargets the targets
*/
- public Logger( final LogEngine engine, final Category category, final
LogTarget[] logTargets )
+ protected Logger( final LogEngine engine, final Category category, final
LogTarget[] logTargets )
{
this( engine, category, logTargets, null );
}
- public Logger( final LogEngine engine, final Category category, final Logger
parent )
+ protected Logger( final LogEngine engine, final Category category, final Logger
parent )
{
this( engine, category, null, parent );
}
- public Logger( final LogEngine engine,
- final Category category,
- final LogTarget[] logTargets,
- final Logger parent )
+ protected Logger( final LogEngine engine,
+ final Category category,
+ final LogTarget[] logTargets,
+ final Logger parent )
{
m_engine = engine;
m_category = category;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]