1 9 package j2me.util.logging; 10 11 12 public class Logger { 13 14 private static final Logger INSTANCE = new Logger(); 15 16 public static Logger getLogger(String name) { 17 return INSTANCE; 18 } 19 20 private Logger() { 21 } 22 23 public boolean isLoggable(Level level) { 24 return (level == Level.SEVERE) || (level == Level.WARNING); 25 } 26 27 public void log(LogRecord record) { 28 } 29 30 public void severe(String msg) { 31 } 32 33 public void warning(String msg) { 34 } 35 36 public void info(String msg) { 37 } 38 39 public void config(String msg) { 40 } 41 42 public void fine(String msg) { 43 } 44 45 public void finer(String msg) { 46 } 47 48 public void finest(String msg) { 49 } 50 51 public void throwing(String sourceClass, String sourceMethod, Throwable thrown) { 52 53 } 54 55 public void entering(String sourceClass, String sourceMethod) { 56 } 57 58 public void exiting(String sourceClass, String sourceMethod) { 59 } 60 61 62 } 63 | Popular Tags |