ch.qos.logback.core.CoreConstants Maven / Gradle / Ivy
/**
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2009, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* or (per the licensee's choosing)
*
* under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation.
*/
package ch.qos.logback.core;
public class CoreConstants {
// Note that the line.separator property can be looked up even by
// applets.
public static final String LINE_SEPARATOR = System.getProperty("line.separator");
public static final int LINE_SEPARATOR_LEN = LINE_SEPARATOR.length();
public static final String CODES_URL = "http://logback.qos.ch/codes.html";
/**
* The default context name.
*/
public static final String DEFAULT_CONTEXT_NAME = "default";
/**
* Customized pattern conversion rules are stored under this key in the
* {@link Context} object store.
*/
public static final String PATTERN_RULE_REGISTRY = "PATTERN_RULE_REGISTRY";
public static final String ISO8601_STR = "ISO8601";
public static final String ISO8601_PATTERN = "yyyy-MM-dd HH:mm:ss,SSS";
/**
* Time format used in Common Log Format
*/
static public final String CLF_DATE_PATTERN = "dd/MM/yyyy:HH:mm:ss Z";
/**
* The key used in locating the evaluator map in context's object map.
*/
static public final String EVALUATOR_MAP = "EVALUATOR_MAP";
/**
* By convention, we assume that the static method named "valueOf" taking
* a string argument can restore a given object from its string
* representation.
*
* Classes participating in this convention must be declared
* as stringStorable in a (logback) context.
*/
static public final String VALUE_OF = "valueOf";
/**
* An empty string.
*/
public final static String EMPTY_STRING = "";
/**
* An empty string array.
*/
public final static String[] EMPTY_STRING_ARRAY = new String[] {};
/**
* An empty Class array.
*/
public final static Class>[] EMPTY_CLASS_ARRAY = new Class[] {};
public final static String CAUSED_BY = "Caused by: ";
public final static char PERCENT_CHAR = '%';
/**
* Number of rows before in an HTML table before,
* we close the table and create a new one
*/
public static final int TABLE_ROW_LIMIT = 10000;
// reset the ObjectOutputStream every OOS_RESET_FREQUENCY calls
// this avoid serious memory leaks
public static final int OOS_RESET_FREQUENCY = 70;
/**
* The reference bogo instructions per second on
* Ceki's machine (Orion)
*/
public static long REFERENCE_BIPS = 9000;
static public final char DOT = '.';
static public final char TAB = '\t';
static public final char DOLLAR = '$';
static public final String SEE_FNP_NOT_SET = "See also http://logback.qos.ch/codes.html#tbr_fnp_not_set";
// The url used for the last configuration via Joran. If a file is used for the
// configuration, then file.getURL() is registered
public static String URL_OF_LAST_CONFIGURATION_VIA_JORAN = "URL_OF_LAST_CONFIGURATION_VIA_JORAN";
}