KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > j2me > util > logging > Logger


1 /*
2  * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
3  * Copyright (C) 2005 - Javolution (http://javolution.org/)
4  * All rights reserved.
5  *
6  * Permission to use, copy, modify, and distribute this software is
7  * freely granted, provided that this notice is preserved.
8  */

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 JavaDoc 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 JavaDoc msg) {
31     }
32
33     public void warning(String JavaDoc msg) {
34     }
35
36     public void info(String JavaDoc msg) {
37     }
38
39     public void config(String JavaDoc msg) {
40     }
41
42     public void fine(String JavaDoc msg) {
43     }
44
45     public void finer(String JavaDoc msg) {
46     }
47
48     public void finest(String JavaDoc msg) {
49     }
50
51     public void throwing(String JavaDoc sourceClass, String JavaDoc sourceMethod, Throwable JavaDoc thrown) {
52         
53     }
54
55     public void entering(String JavaDoc sourceClass, String JavaDoc sourceMethod) {
56     }
57     
58     public void exiting(String JavaDoc sourceClass, String JavaDoc sourceMethod) {
59     }
60     
61     
62 }
63
Popular Tags