public class LoggingCategoryNames extends Object
Given a classname, eg org.forgerock.opendj.server.core.SomeClass, it allows to get the corresponding simplified category name if it exists, eg "CORE". If no simplified category name exist, the classname is used as a category name.
Constructor and Description |
---|
LoggingCategoryNames() |
Modifier and Type | Method and Description |
---|---|
static String |
getCategoryName(String className)
Returns the simple category name corresponding to the provided class name
or the class name if no mapping corresponds.
|
static String |
getCategoryName(String className,
String fallbackCategory)
Returns the simple category name corresponding to the provided class name
or a class name if no mapping corresponds.
|
public LoggingCategoryNames()
public static String getCategoryName(String className)
className
- The classname to retrieve the category name from.public static String getCategoryName(String className, String fallbackCategory)
fallbackCategory
if the class name is
null.className
- The classname to retrieve the category name from.fallbackCategory
- The category to return when className is null.Copyright 2010-2017 ForgeRock AS.