View Javadoc

1   package ch.qos.logback.core;
2   
3   public class CoreConstants {
4   
5     // Note that the line.separator property can be looked up even by
6     // applets.
7     public static final String LINE_SEPARATOR = System.getProperty("line.separator");
8     public static final int LINE_SEPARATOR_LEN = LINE_SEPARATOR.length();
9    
10    
11    public static final String CODES_URL = "http://logback.qos.ch/codes.html";
12    
13    /**
14     * The default context name.
15     */
16    public static final String DEFAULT_CONTEXT_NAME = "default";
17    /**
18     * Customized pattern conversion rules are stored under this key in the
19     * {@link Context} object store.
20     */
21    public static final String PATTERN_RULE_REGISTRY = "PATTERN_RULE_REGISTRY";
22    
23    public static final String ISO8601_STR = "ISO8601";
24    public static final String ISO8601_PATTERN = "yyyy-MM-dd HH:mm:ss,SSS";
25   
26    /**
27     * Time format used in Common Log Format
28     */
29    static public final String CLF_DATE_PATTERN = "dd/MM/yyyy:HH:mm:ss Z";
30    
31    /**
32     * The key used in locating the evaluator map in context's object map.
33     */
34    static public final String EVALUATOR_MAP = "EVALUATOR_MAP";
35  
36    /**
37     * By convention, we assume that the static method named "valueOf" taking 
38     * a string argument can restore a given object from its string 
39     * representation.
40     * 
41     * <p>Classes participating in this convention must be declared
42     * as stringStorable in a (logback) context.
43     */
44    static public final String VALUE_OF = "valueOf";
45    
46    /**
47     * An empty string.
48     */
49    public final static String EMPTY_STRING = "";
50    
51    /**
52     * An empty string array.
53     */
54    public final static String[] EMPTY_STRING_ARRAY = new String[] {};
55    
56    /**
57     * An empty Class array.
58     */
59    public final static Class[] EMPTY_CLASS_ARRAY = new Class[] {};
60    public final static String CAUSED_BY = "Caused by: ";
61    
62    
63    public final static char PERCENT_CHAR = '%';
64    
65    /** 
66     * Number of rows before in an HTML table before, 
67     * we close the table and create a new one
68     */
69    public static final int TABLE_ROW_LIMIT = 10000;
70    
71    
72    // reset the ObjectOutputStream every 70 calls
73    // this avoid serious memory leaks
74    public static final int OOS_RESET_FREQUENCY = 70;
75    
76    /**
77     * The reference bogo instructions per second on
78     * Ceki's machine (Orion)
79     */
80    public static long REFERENCE_BIPS = 9000;
81    static public final char DOT = '.';
82  
83  }