001/**
002 * Logback: the reliable, generic, fast and flexible logging framework.
003 * Copyright (C) 1999-2015, QOS.ch. All rights reserved.
004 *
005 * This program and the accompanying materials are dual-licensed under
006 * either the terms of the Eclipse Public License v1.0 as published by
007 * the Eclipse Foundation
008 *
009 *   or (per the licensee's choosing)
010 *
011 * under the terms of the GNU Lesser General Public License version 2.1
012 * as published by the Free Software Foundation.
013 */
014package ch.qos.logback.classic;
015
016import org.slf4j.Marker;
017import org.slf4j.MarkerFactory;
018
019public class ClassicConstants {
020    public static final String USER_MDC_KEY = "user";
021
022    public static final String LOGBACK_CONTEXT_SELECTOR = "logback.ContextSelector";
023    public static final String CONFIG_FILE_PROPERTY = "logback.configurationFile";
024
025    public static final String JNDI_CONFIGURATION_RESOURCE = "java:comp/env/logback/configuration-resource";
026    public static final String JNDI_CONTEXT_NAME = "java:comp/env/logback/context-name";
027
028    /**
029     * The maximum number of package separators (dots) that abbreviation
030     * algorithms can handle. Class or logger names with more separators will have
031     * their first MAX_DOTS parts shortened.
032     * 
033     */
034    public static final int MAX_DOTS = 16;
035
036    /**
037     * The default stack data depth computed during caller data extraction.
038     */
039    public static final int DEFAULT_MAX_CALLEDER_DATA_DEPTH = 8;
040
041    public static final String REQUEST_REMOTE_HOST_MDC_KEY = "req.remoteHost";
042    public static final String REQUEST_USER_AGENT_MDC_KEY = "req.userAgent";
043    public static final String REQUEST_REQUEST_URI = "req.requestURI";
044    public static final String REQUEST_QUERY_STRING = "req.queryString";
045    public static final String REQUEST_REQUEST_URL = "req.requestURL";
046    public static final String REQUEST_METHOD = "req.method";
047    public static final String REQUEST_X_FORWARDED_FOR = "req.xForwardedFor";
048
049    public static final String GAFFER_CONFIGURATOR_FQCN = "ch.qos.logback.classic.gaffer.GafferConfigurator";
050
051    public static final String FINALIZE_SESSION = "FINALIZE_SESSION";
052    public static final Marker FINALIZE_SESSION_MARKER = MarkerFactory.getMarker(FINALIZE_SESSION);
053}