1 19 package javax.util.jcache; 20 21 36 public abstract class CacheLogger { 37 38 39 public static final int OFF = 0; 40 41 42 public static final int FATAL = 1; 43 44 45 public static final int ERROR = 2; 46 47 48 public static final int WARNING = 3; 49 50 54 public static final int INFO = 4; 55 56 60 public static final int DEFAULT = 5; 61 62 63 public static final int DEBUG = 6; 64 65 66 public static final int TRACE = 7; 67 68 71 protected CacheLogger() { 72 } 73 74 80 public abstract void log(final String message); 81 82 90 public abstract void log(final String message, final Throwable cause); 91 92 100 public abstract void init(final String fileName, final int severity); 101 102 107 public abstract void flush(); 108 109 117 public static int getSeverity() { 118 return OFF; 119 } 120 121 129 public final void setSeverity(final int severity) { 130 } 131 } | Popular Tags |