Package org.apache.solr.logging
Class DeprecationLog
- java.lang.Object
-
- org.apache.solr.logging.DeprecationLog
-
public class DeprecationLog extends Object
Utility to log a deprecation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOG_PREFIX
-
Constructor Summary
Constructors Constructor Description DeprecationLog()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
log(String featureId, String message)
Logs a deprecation warning for the provided feature, but only the first time.
-
-
-
Field Detail
-
LOG_PREFIX
public static final String LOG_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
log
public static boolean log(String featureId, String message)
Logs a deprecation warning for the provided feature, but only the first time. The logger name used is "org.apache.solr.DEPRECATED." +featureId
. Remember that logger names are disable-able via configuration if needed.- Returns:
- true if logged
-
-