001/*
002 *  Licensed to the Apache Software Foundation (ASF) under one
003 *  or more contributor license agreements.  See the NOTICE file
004 *  distributed with this work for additional information
005 *  regarding copyright ownership.  The ASF licenses this file
006 *  to you under the Apache License, Version 2.0 (the
007 *  "License"); you may not use this file except in compliance
008 *  with the License.  You may obtain a copy of the License at
009 *  
010 *    http://www.apache.org/licenses/LICENSE-2.0
011 *  
012 *  Unless required by applicable law or agreed to in writing,
013 *  software distributed under the License is distributed on an
014 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 *  KIND, either express or implied.  See the License for the
016 *  specific language governing permissions and limitations
017 *  under the License. 
018 *  
019 */
020package org.apache.directory.api.ldap.model.constants;
021
022
023/**
024 * An enum defining a list of dedicated loggers, used for debugging
025 * purpose :
026 * <ul>
027 * <li>ACI_LOG : Logs on teh ACI processing</li>
028 * <li>CONSUMER_LOG : Logs on the replication consummer</li>
029 * <li>CURSOR_LOG : Logs on search cursors</li>
030 * <li>PROVIDER_LOG : Logs on the replication provider</li>
031 * <li>OPERATION_STAT : Logs on the operations statistics</li>
032 * <li>OPERATION_TIME : Logs on the time it takes to process an operation</li>
033 * <li>KERBEROS_LOG : Logs on Kerberos</li>
034 * <li>CODEC_LOG : Logs on encoder/decoder</li>
035 * <li>OPERATIONS_LOG: Logs on LDAP operations</li>
036 * </ul>
037 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
038 */
039public enum Loggers
040{
041    /** The dedicated logger for ACIs */
042    ACI_LOG("org.apache.directory.server.ACI_LOG"),
043
044    /** The dedicated logs for the replication consumer */
045    CONSUMER_LOG("org.apache.directory.server.CONSUMER_LOG"),
046
047    /** The dedicated logs for the cursors */
048    CURSOR_LOG("org.apache.directory.CURSOR_LOG"),
049
050    /** The dedicated logs for the replication provider */
051    PROVIDER_LOG("org.apache.directory.server.PROVIDER_LOG"),
052
053    /** The dedicated logs for operation statistics */
054    OPERATION_STAT("org.apache.directory.server.OPERATION_STAT"),
055
056    /** The dedicated logs for operation execution time */
057    OPERATION_TIME("org.apache.directory.server.OPERATION_TIME"),
058
059    /** The dedicated logger for KERBEROS */
060    KERBEROS_LOG("org.apache.directory.server.KERBEROS_LOG"),
061
062    /** The dedicated logger for LDAP operations */
063    OPERATION_LOG("org.apache.directory.server.OPERATION_LOG"),
064
065    /** The dedicated logger for CODEC */
066    CODEC_LOG("org.apache.directory.api.CODEC_LOG");
067
068    /** The associated name */
069    private String name;
070
071
072    /**
073     * Creates a new instance of LdapSecurityConstants.
074     * @param name the associated name
075     */
076    private Loggers( String name )
077    {
078        this.name = name;
079    }
080
081
082    /**
083     * @return the name associated with the constant.
084     */
085    public String getName()
086    {
087        return name;
088    }
089}