01: /*
02: * Javolution - Java(TM) Solution for Real-Time and Embedded Systems
03: * Copyright (C) 2005 - Javolution (http://javolution.org/)
04: * All rights reserved.
05: *
06: * Permission to use, copy, modify, and distribute this software is
07: * freely granted, provided that this notice is preserved.
08: */
09: package j2me.util.logging;
10:
11: public class Logger {
12:
13: private static final Logger INSTANCE = new Logger();
14:
15: public static Logger getLogger(String name) {
16: return INSTANCE;
17: }
18:
19: private Logger() {
20: }
21:
22: public boolean isLoggable(Level level) {
23: return (level == Level.SEVERE) || (level == Level.WARNING);
24: }
25:
26: public void log(LogRecord record) {
27: }
28:
29: public void severe(String msg) {
30: System.out.println("[error] " + msg);
31: }
32:
33: public void warning(String msg) {
34: System.out.println("[warning] " + msg);
35: }
36:
37: public void info(String msg) {
38: System.out.println("[info] " + msg);
39: }
40:
41: public void config(String msg) {
42: }
43:
44: public void fine(String msg) {
45: }
46:
47: public void finer(String msg) {
48: }
49:
50: public void finest(String msg) {
51: }
52:
53: public void throwing(String sourceClass, String sourceMethod,
54: Throwable thrown) {
55:
56: }
57:
58: public void entering(String sourceClass, String sourceMethod) {
59: }
60:
61: public void exiting(String sourceClass, String sourceMethod) {
62: }
63:
64: public void log(Level level, String msg) {
65: }
66:
67: public void log(Level level, String msg, Throwable thrown) {
68: }
69: }
|