/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at legal-notices/CDDLv1_0.txt
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at legal-notices/CDDLv1_0.txt.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information:
* Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*
*
* Copyright 2014-2015 ForgeRock AS.
*/
/**
* Provides mapping from class names to simple category names used for logging.
* <p>
* 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.
*/
public class LoggingCategoryNames
{
/**
* Contains mapping from class names (or package names) to category names. In
* most case, package name is sufficient to map to a category name. It is
* valid if several entries point to the same category name.
*/
static
{
// The category used for messages associated with the core server.
// The category used for messages associated with server extensions
// (e.g. extended operations, SASL mechanisms, password storage, schemes, password validators, etc.).
// The category used for messages associated with
// connection and protocol handling (e.g., ASN.1 and LDAP).
// The category used for messages associated with configuration handling.
// The category used for messages associated with the server loggers.
// The category used for messages associated with the general server utilities.
// The category used for messages associated with the server schema elements.
// The category used for messages associated with the server controls.
// The category that will be used for messages associated with plugin processing.
// The category used for messages associated with the JE backend.
// The category used for messages associated with the pluggable backend.
// The category used for messages associated with the PDB backend.
// The category used for messages associated with generic backends.
// The category used for messages associated with tools
// The category used for messages associated with upgrade tool
// The category used for messages associated with tasks
// The category used for messages associated with Access Control
// The category used for messages associated with the administration framework.
// The category used for messages associated with the Synchronization
// The category used for messages associated with quicksetup tools
// The category used for messages associated with the tool like the offline installer and unintaller.
// The category used for messages associated with the dsconfig
// administration tool.
// The category used for messages associated with common audit.
}
/**
* Returns the simple category name corresponding to the provided class name
* or the class name if no mapping corresponds.
*
* @param className
* The classname to retrieve the category name from.
* @return the simple category name, or the provided className if no matching
* simple category name is found
*/
{
{
}
return className;
}
}