01: /******************************************************************************
02: * Copyright (C) Lars Ivar Almli. All rights reserved. *
03: * ---------------------------------------------------------------------------*
04: * This file is part of MActor. *
05: * *
06: * MActor is free software; you can redistribute it and/or modify *
07: * it under the terms of the GNU General Public License as published by *
08: * the Free Software Foundation; either version 2 of the License, or *
09: * (at your option) any later version. *
10: * *
11: * MActor is distributed in the hope that it will be useful, *
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14: * GNU General Public License for more details. *
15: * *
16: * You should have received a copy of the GNU General Public License *
17: * along with MActor; if not, write to the Free Software *
18: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
19: ******************************************************************************/package org.mactor.framework;
20:
21: /**
22: * @deprecated replaced nby log4j
23: */
24: public class Logger {
25: org.apache.log4j.Logger l4j;
26:
27: public static Logger getLogger(Class classWhereLoggingIsDone) {
28: return new Logger(classWhereLoggingIsDone);
29: }
30:
31: /**
32: * @deprecated replaced nby log4j
33: */
34: private Logger(Class classWhereLoggingIsDone) {
35: this .l4j = org.apache.log4j.Logger
36: .getLogger(classWhereLoggingIsDone);
37: }
38:
39: /**
40: * @deprecated replaced nby log4j
41: */
42: public void logError(String message, Throwable cause) {
43: l4j.error(message, cause);
44: }
45:
46: /**
47: * @deprecated replaced nby log4j
48: */
49: public void logError(String message) {
50: l4j.error(message);
51: }
52:
53: /**
54: * @deprecated replaced nby log4j
55: */
56: public void logInfo(String message, Throwable cause) {
57: l4j.info(message, cause);
58: }
59:
60: /**
61: * @deprecated replaced nby log4j
62: */
63: public void logInfo(String message) {
64: l4j.info(message);
65: }
66:
67: /**
68: * @deprecated replaced nby log4j
69: */
70: public void logDebug(String message) {
71: l4j.debug(message);
72: }
73:
74: /**
75: * @deprecated replaced nby log4j
76: */
77: public boolean isLogInfo() {
78: return l4j.isInfoEnabled();
79: }
80:
81: /**
82: * @deprecated replaced nby log4j
83: */
84: public boolean isLogDebug() {
85: return l4j.isDebugEnabled();
86: }
87: }
|