1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
package org.qedeq.kernel.bo.log; |
17 |
|
|
18 |
|
import java.io.PrintStream; |
19 |
|
|
20 |
|
import org.qedeq.base.utility.DateUtility; |
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
@author |
26 |
|
|
|
|
| 60% |
Uncovered Elements: 4 (10) |
Complexity: 4 |
Complexity Density: 0.67 |
|
27 |
|
public final class ModuleLogListenerImpl implements ModuleLogListener { |
28 |
|
|
29 |
|
|
30 |
|
private PrintStream out = System.out; |
31 |
|
|
32 |
|
|
33 |
|
private final String moduleUrl; |
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
@param |
39 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
40 |
0
|
public ModuleLogListenerImpl(final String moduleUrl) {... |
41 |
0
|
this(moduleUrl, System.out); |
42 |
|
} |
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
@param |
48 |
|
@param |
49 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
50 |
3
|
public ModuleLogListenerImpl(final String moduleUrl, final PrintStream stream) {... |
51 |
3
|
this.moduleUrl = moduleUrl; |
52 |
3
|
this.out = stream; |
53 |
|
} |
54 |
|
|
55 |
|
|
56 |
|
|
57 |
|
|
58 |
|
@param |
59 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
60 |
0
|
public final void setPrintStream(final PrintStream stream) {... |
61 |
0
|
this.out = stream; |
62 |
|
} |
63 |
|
|
|
|
| 100% |
Uncovered Elements: 0 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
64 |
52
|
public final void logMessageState(final String text) {... |
65 |
52
|
out.println(moduleUrl); |
66 |
52
|
out.println(DateUtility.getTimestamp() + " state: " + text); |
67 |
|
} |
68 |
|
|
69 |
|
} |