View Javadoc

1   package org.kuali.common.util.log4j.model;
2   
3   /**
4    * @deprecated
5    */
6   @Deprecated
7   public enum Value {
8   
9   	ALL, TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF, NULL;
10  	// Log4j only supports "null" (lowercase) as a text value inside log4j.xml
11  	// "NULL" (uppercase) is not supported and causes log4j to emit a WARN level logging message as an unknown level.
12  	// The best solution would be to get log4j to recognize "NULL" as a synonym for "null"
13  	// Failing that, another solution would be to get JAXB to translate "NULL" to "null" and vice versa when writing/reading xml.
14  	// What happens at the moment, is we detect "NULL" and set it to null when creating xml from an object.
15  	// This causes JAXB to omit the "value" attribute entirely from the xml.
16  	// When going the other way (ie creating an object from xml) "NULL" is the default value if the "value" attribute is not present.
17  	// Thus we have a method that works in both directions for dealing with "NULL" vs "null"
18  	// Granted, this is a tad bit crazy and supremely brittle...
19  
20  }