1 23 package com.lutris.logging; 24 25 import com.lutris.util.Config; 26 import com.lutris.util.ConfigException; 27 28 73 public abstract class Logger { 74 75 79 public static final int EMERGENCY = 0; 80 81 84 public static final int ALERT = 1; 85 86 89 public static final int CRITICAL = 2; 90 91 94 public static final int ERROR = 3; 95 96 99 public static final int WARNING = 4; 100 101 105 public static final int NOTICE = 5; 106 107 110 public static final int INFO = 6; 111 112 117 public static final int DEBUG = 7; 118 119 122 public static final int DEBUG1 = 8; 123 124 127 public static final int DEBUG2 = 9; 128 129 132 public static final int DEBUG3 = 10; 133 134 137 public static final int DEBUG4 = 11; 138 139 142 public static final int DEBUG5 = 12; 143 144 147 public static final int DEBUG6 = 13; 148 149 152 public static final int DEBUG7 = 14; 153 154 157 public static final int DEBUG8 = 15; 158 159 162 public static final int DEBUG9 = 16; 163 164 167 public static final int DEBUGTMP = 17; 168 169 172 public static final int MAX_STD_LEVEL = DEBUGTMP; 173 174 177 protected static Logger centralLogger; 178 179 182 protected static final String [] standardLevelNames = { 183 "EMERGENCY", "ALERT", "CRITICAL", "ERROR", "WARNING", "NOTICE", "INFO", "DEBUG", "DEBUG1", "DEBUG2", "DEBUG3", "DEBUG4", "DEBUG5", "DEBUG6", "DEBUG7", "DEBUG8", "DEBUG9", "DEBUGTMP" }; 202 203 211 public static Logger getCentralLogger() { 212 return centralLogger; 213 } 214 215 221 abstract public LogChannel getChannel(String facility); 222 223 229 abstract public void configure(String confFilePath) throws ConfigException; 230 231 236 abstract public void configure(Config logConfig) throws ConfigException; 237 } 238 | Popular Tags |