blob: bff79fd57bf0bac6009c582daaaf3be71c1d2d48 [file] [log] [blame]
/*
* Copyright 1999,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.log4j.helpers;
/**
* Constants used internally throughout log4j.
*
* @since 1.3
*/
public interface Constants {
static final String LOG4J_PACKAGE_NAME = "org.apache.log4j";
/**
* The name of the default repository is "default" (without the quotes).
*/
static final String DEFAULT_REPOSITORY_NAME = "default";
static final String APPLICATION_KEY = "application";
static final String HOSTNAME_KEY = "hostname";
static final String RECEIVER_NAME_KEY = "receiver";
static final String LOG4J_ID_KEY = "log4jid";
public static final String TIMESTAMP_RULE_FORMAT = "yyyy/MM/dd HH:mm:ss";
/*
* The default property file name for automatic configuration.
*/
static final String DEFAULT_CONFIGURATION_FILE = "log4j.properties";
/*
* The default XML configuration file name for automatic configuration.
*/
static final String DEFAULT_XML_CONFIGURATION_FILE = "log4j.xml";
static final String DEFAULT_CONFIGURATION_KEY = "log4j.configuration";
static final String CONFIGURATOR_CLASS_KEY = "log4j.configuratorClass";
static final String JNDI_CONTEXT_NAME = "java:comp/env/log4j/context-name";
static final String TEMP_LIST_APPENDER_NAME = "TEMP_LIST_APPENDER";
static final String TEMP_CONSOLE_APPENDER_NAME = "TEMP_CONSOLE_APPENDER";
static final String CODES_HREF = "http://logging.apache.org/log4j/docs/codes.html";
public static final String ABSOLUTE_FORMAT = "ABSOLUTE";
public static final String ABSOLUTE_TIME_PATTERN = "HH:mm:ss,SSS";
public static final String DATE_AND_TIME_FORMAT = "DATE";
public static final String DATE_AND_TIME_PATTERN = "dd MMM yyyy HH:mm:ss,SSS";
public static final String ISO8601_FORMAT = "ISO8601";
public static final String ISO8601_PATTERN = "yyyy-MM-dd HH:mm:ss,SSS";
}