Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
LogMessage |
|
| 1.0;1 |
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 | public LogMessage() { |
34 | ||
35 | 0 | } |
36 | 0 | public LogMessage(LogLevel level, String message, Throwable error) { |
37 | 0 | this.logLevel = level; |
38 | 0 | this.message = message; |
39 | 0 | this.error = error; |
40 | 0 | } |
41 | ||
42 | public LogLevel getLogLevel() { | |
43 | 0 | return logLevel; |
44 | } | |
45 | public void setLogLevel(LogLevel logLevel) { | |
46 | 0 | this.logLevel = logLevel; |
47 | 0 | } |
48 | public String getMessage() { | |
49 | 0 | return message; |
50 | } | |
51 | public void setMessage(String message) { | |
52 | 0 | this.message = message; |
53 | 0 | } |
54 | public Throwable getError() { | |
55 | 0 | return error; |
56 | } | |
57 | public void setError(Throwable error) { | |
58 | 0 | this.error = error; |
59 | 0 | } |
60 | ||
61 | } |