1 /* 2 * Licensed to the Apache Software Foundation (ASF) under one 3 * or more contributor license agreements. See the NOTICE file 4 * distributed with this work for additional information 5 * regarding copyright ownership. The ASF licenses this file 6 * to you under the Apache License, Version 2.0 (the 7 * "License"); you may not use this file except in compliance 8 * with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, 13 * software distributed under the License is distributed on an 14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 * KIND, either express or implied. See the License for the 16 * specific language governing permissions and limitations 17 * under the License. 18 * 19 */ 20 package org.apache.directory.api.ldap.model.constants; 21 22 23 /** 24 * An enum defining a list of dedicated loggers, used for debugging 25 * purpose : 26 * <ul> 27 * <li>ACI_LOG : Logs on teh ACI processing</li> 28 * <li>CONSUMER_LOG : Logs on the replication consummer</li> 29 * <li>CURSOR_LOG : Logs on search cursors</li> 30 * <li>PROVIDER_LOG : Logs on the replication provider</li> 31 * <li>OPERATION_STAT : Logs on the operations statistics</li> 32 * <li>OPERATION_TIME : Logs on the time it takes to process an operation</li> 33 * <li>KERBEROS_LOG : Logs on Kerberos</li> 34 * <li>CODEC_LOG : Logs on encoder/decoder</li> 35 * <li>OPERATIONS_LOG: Logs on LDAP operations</li> 36 * </ul> 37 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 38 */ 39 public enum Loggers 40 { 41 /** The dedicated logger for ACIs */ 42 ACI_LOG("org.apache.directory.server.ACI_LOG"), 43 44 /** The dedicated logs for the replication consumer */ 45 CONSUMER_LOG("org.apache.directory.server.CONSUMER_LOG"), 46 47 /** The dedicated logs for the cursors */ 48 CURSOR_LOG("org.apache.directory.CURSOR_LOG"), 49 50 /** The dedicated logs for the replication provider */ 51 PROVIDER_LOG("org.apache.directory.server.PROVIDER_LOG"), 52 53 /** The dedicated logs for operation statistics */ 54 OPERATION_STAT("org.apache.directory.server.OPERATION_STAT"), 55 56 /** The dedicated logs for operation execution time */ 57 OPERATION_TIME("org.apache.directory.server.OPERATION_TIME"), 58 59 /** The dedicated logger for KERBEROS */ 60 KERBEROS_LOG("org.apache.directory.server.KERBEROS_LOG"), 61 62 /** The dedicated logger for LDAP operations */ 63 OPERATION_LOG("org.apache.directory.server.OPERATION_LOG"), 64 65 /** The dedicated logger for CODEC */ 66 CODEC_LOG("org.apache.directory.api.CODEC_LOG"); 67 68 /** The associated name */ 69 private String name; 70 71 72 /** 73 * Creates a new instance of LdapSecurityConstants. 74 * @param name the associated name 75 */ 76 Loggers( String name ) 77 { 78 this.name = name; 79 } 80 81 82 /** 83 * @return the name associated with the constant. 84 */ 85 public String getName() 86 { 87 return name; 88 } 89 }