1 package org.apache.maven.scm.log;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26 public class DefaultLog
27 implements ScmLogger
28 {
29
30
31 public boolean isDebugEnabled()
32 {
33 return false;
34 }
35
36
37 public void debug( String content )
38 {
39 }
40
41
42 public void debug( String content, Throwable error )
43 {
44 }
45
46
47 public void debug( Throwable error )
48 {
49 }
50
51
52 public boolean isInfoEnabled()
53 {
54 return true;
55 }
56
57
58 public void info( String content )
59 {
60 System.out.println( content );
61 }
62
63
64 public void info( String content, Throwable error )
65 {
66 System.out.println( content );
67 error.printStackTrace();
68 }
69
70
71 public void info( Throwable error )
72 {
73 error.printStackTrace();
74 }
75
76
77 public boolean isWarnEnabled()
78 {
79 return true;
80 }
81
82
83 public void warn( String content )
84 {
85 System.out.println( content );
86 }
87
88
89 public void warn( String content, Throwable error )
90 {
91 System.out.println( content );
92 error.printStackTrace();
93 }
94
95
96 public void warn( Throwable error )
97 {
98 error.printStackTrace();
99 }
100
101
102 public boolean isErrorEnabled()
103 {
104 return true;
105 }
106
107
108 public void error( String content )
109 {
110 System.out.print( "[ERROR] " + content );
111 }
112
113
114 public void error( String content, Throwable error )
115 {
116 System.out.println( "[ERROR] " + content );
117 error.printStackTrace();
118 }
119
120
121 public void error( Throwable error )
122 {
123 error.printStackTrace();
124 }
125 }