ceki 01/06/26 04:02:03 Modified: src/java/org/apache/log4j/examples MyCategory.java src/java/org/apache/log4j/xml/examples XCategory.java Log: Added getFQCN() method to log4j/xml/examples/XCategory.java Revision Changes Path 1.11 +1 -1 jakarta-log4j/src/java/org/apache/log4j/examples/MyCategory.java Index: MyCategory.java =================================================================== RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/examples/MyCategory.java,v retrieving revision 1.10 retrieving revision 1.11 diff -u -r1.10 -r1.11 --- MyCategory.java 2001/06/26 10:57:42 1.10 +++ MyCategory.java 2001/06/26 11:01:32 1.11 @@ -27,7 +27,7 @@ // It's usually a good idea to add a dot suffix to the fully // qualified class name. This makes caller localization to work - // properly even from classes that have the almostthe same fully + // properly even from classes that have almost the same fully // qualified class name as MyCategory, e.g. MyCategoryTest. static String FQCN = MyCategory.class.getName() + "."; 1.10 +15 -2 jakarta-log4j/src/java/org/apache/log4j/xml/examples/XCategory.java Index: XCategory.java =================================================================== RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/xml/examples/XCategory.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -r1.9 -r1.10 --- XCategory.java 2001/02/03 22:39:24 1.9 +++ XCategory.java 2001/06/26 11:01:52 1.10 @@ -33,8 +33,12 @@ */ public class XCategory extends Category implements OptionHandler { - - final private static String FQCN = XCategory.class.getName(); + + // It's usually a good idea to add a dot suffix to the fully + // qualified class name. This makes caller localization to work + // properly even from classes that have almost the same fully + // qualified class name as XCategory. + private static String FQCN = XCategory.class.getName() + "."; // It's enough to instantiate a factory once and for all. private static XFactory factory = new XFactory(); @@ -64,6 +68,15 @@ public void debug(String message) { super.debug(message + " " + suffix); + } + + + /** + This makes caller localization to work properly. + */ + protected + String getFQCN() { + return XCategory.FQCN; } /** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]