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  @Deprecated
27  public class LogMessage implements Serializable {
28  	private static final long serialVersionUID = 1L;
29  
30  	LogLevel logLevel;
31  	String message;
32  	Throwable error;
33  	
34  	public LogMessage() {
35  		
36  	}
37  	public LogMessage(LogLevel level, String message, Throwable error) {
38  		this.logLevel = level;
39  		this.message = message;
40  		this.error = error;
41  	}
42  	
43  	public LogLevel getLogLevel() {
44  		return logLevel;
45  	}
46  	public void setLogLevel(LogLevel logLevel) {
47  		this.logLevel = logLevel;
48  	}
49  	public String getMessage() {
50  		return message;
51  	}
52  	public void setMessage(String message) {
53  		this.message = message;
54  	}
55  	public Throwable getError() {
56  		return error;
57  	}
58  	public void setError(Throwable error) {
59  		this.error = error;
60  	}
61  	
62  }