Clover Coverage Report - KS Common UI 1.2.1-SNAPSHOT
Coverage timestamp: Wed Nov 2 2011 05:17:48 EST
../../../../../../../img/srcFileCovDistChart0.png 4% of files have more coverage
9   61   8   1.12
0   33   0.89   8
8     1  
1    
 
  LogMessage       Line # 26 9 0% 8 17 0% 0.0
 
No Tests
 
1    /**
2    * Copyright 2010 The Kuali Foundation Licensed under the
3    * Educational Community License, Version 2.0 (the "License"); you may
4    * not use this file except in compliance with the License. You may
5    * obtain a copy of the License at
6    *
7    * http://www.osedu.org/licenses/ECL-2.0
8    *
9    * Unless required by applicable law or agreed to in writing,
10    * software distributed under the License is distributed on an "AS IS"
11    * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
12    * or implied. See the License for the specific language governing
13    * permissions and limitations under the License.
14    */
15   
16    package org.kuali.student.common.ui.client.logging;
17   
18    import java.io.Serializable;
19   
20   
21    /**
22    * Bean representing a logged message.
23    * Used internally by the LogService and LogBufer.
24    *
25    */
 
26    public class LogMessage implements Serializable {
27    private static final long serialVersionUID = 1L;
28   
29    LogLevel logLevel;
30    String message;
31    Throwable error;
32   
 
33  0 toggle public LogMessage() {
34   
35    }
 
36  0 toggle public LogMessage(LogLevel level, String message, Throwable error) {
37  0 this.logLevel = level;
38  0 this.message = message;
39  0 this.error = error;
40    }
41   
 
42  0 toggle public LogLevel getLogLevel() {
43  0 return logLevel;
44    }
 
45  0 toggle public void setLogLevel(LogLevel logLevel) {
46  0 this.logLevel = logLevel;
47    }
 
48  0 toggle public String getMessage() {
49  0 return message;
50    }
 
51  0 toggle public void setMessage(String message) {
52  0 this.message = message;
53    }
 
54  0 toggle public Throwable getError() {
55  0 return error;
56    }
 
57  0 toggle public void setError(Throwable error) {
58  0 this.error = error;
59    }
60   
61    }