Clover Coverage Report
Coverage timestamp: Sat Sep 18 2010 04:09:52 UTC
../../../../../img/srcFileCovDistChart0.png 89% of files have more coverage
7   62   8   0.88
0   28   1.14   8
8     1  
1    
 
  TraceListener       Line # 25 7 8 0% 0.0
 
No Tests
 
1    /* This file is part of the project "Hilbert II" - http://www.qedeq.org
2    *
3    * Copyright 2000-2010, Michael Meyling <mime@qedeq.org>.
4    *
5    * "Hilbert II" is free software; you can redistribute
6    * it and/or modify it under the terms of the GNU General Public
7    * License as published by the Free Software Foundation; either
8    * version 2 of the License, or (at your option) any later version.
9    *
10    * This program is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13    * GNU General Public License for more details.
14    */
15   
16    package org.qedeq.kernel.bo.log;
17   
18    import org.qedeq.base.trace.Trace;
19   
20    /**
21    * Listener that writes events to the trace.
22    *
23    * @author Michael Meyling
24    */
 
25    public final class TraceListener implements LogListener {
26   
27    /**
28    * Constructor.
29    */
 
30  0 toggle public TraceListener() {
31    }
32   
 
33  0 toggle public final void logMessageState(final String text, final String url) {
34  0 Trace.log(" state: " + text, url);
35    }
36   
 
37  0 toggle public final void logFailureState(final String text, final String url,
38    final String description) {
39  0 Trace.log(" failure: " + text, url, description);
40    }
41   
 
42  0 toggle public final void logSuccessfulState(final String text, final String url) {
43  0 Trace.log(" success: " + text, url);
44    }
45   
 
46  0 toggle public void logRequest(final String text) {
47  0 Trace.log(" request: " + text);
48    }
49   
 
50  0 toggle public final void logMessage(final String text) {
51  0 Trace.log(" " + text);
52    }
53   
 
54  0 toggle public void logSuccessfulReply(final String text) {
55  0 Trace.log(" reply: " + text);
56    }
57   
 
58  0 toggle public void logFailureReply(final String text, final String description) {
59  0 Trace.log(" reply: " + text, description);
60    }
61   
62    }