View Javadoc

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