01: /*
02: * This program is free software; you can redistribute it and/or
03: * modify it under the terms of the GNU General Public License
04: * as published by the Free Software Foundation; either version 2
05: * of the License, or (at your option) any later version.
06: *
07: * This program is distributed in the hope that it will be useful,
08: * but WITHOUT ANY WARRANTY; without even the implied warranty of
09: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10: * GNU General Public License for more details.
11:
12: * You should have received a copy of the GNU General Public License
13: * along with this program; if not, write to the Free Software
14: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
15: */
16: package net.sf.jftp.system.logging;
17:
18: public class SystemLogger implements Logger {
19: private void log(String msg) {
20: System.out.println(msg);
21: }
22:
23: private void log(String msg, Throwable throwable) {
24: System.out.println(msg);
25: throwable.printStackTrace();
26: }
27:
28: public void debug(String msg) {
29: log(msg + "\n");
30: }
31:
32: public void debugRaw(String msg) {
33: log(msg);
34: }
35:
36: public void debug(String msg, Throwable throwable) {
37: log(msg, throwable);
38: }
39:
40: public void warn(String msg) {
41: log(msg);
42: }
43:
44: public void warn(String msg, Throwable throwable) {
45: log(msg, throwable);
46: }
47:
48: public void error(String msg) {
49: log(msg);
50: }
51:
52: public void error(String msg, Throwable throwable) {
53: log(msg, throwable);
54: }
55:
56: public void info(String msg) {
57: log(msg);
58: }
59:
60: public void info(String msg, Throwable throwable) {
61: log(msg, throwable);
62: }
63:
64: public void fatal(String msg) {
65: log(msg);
66: }
67:
68: public void fatal(String msg, Throwable throwable) {
69: log(msg, throwable);
70: }
71: }
|