View Javadoc

1   /**
2    * Copyright 2010-2013 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.kuali.common.util;
17  
18  public class LogMsg {
19  
20  	LoggerLevel level = LoggerLevel.INFO;
21  	String message;
22  	Object[] args;
23  
24  	public LogMsg() {
25  		this(null, null, LoggerLevel.INFO);
26  	}
27  
28  	public LogMsg(String message, Object[] args) {
29  		this(message, args, LoggerLevel.INFO);
30  	}
31  
32  	public LogMsg(String message, Object[] args, LoggerLevel level) {
33  		super();
34  		this.message = message;
35  		this.args = args;
36  		this.level = level;
37  	}
38  
39  	public String getMessage() {
40  		return message;
41  	}
42  
43  	public void setMessage(String message) {
44  		this.message = message;
45  	}
46  
47  	public Object[] getArgs() {
48  		return args;
49  	}
50  
51  	public void setArgs(Object[] args) {
52  		this.args = args;
53  	}
54  
55  	public LoggerLevel getLevel() {
56  		return level;
57  	}
58  
59  	public void setLevel(LoggerLevel level) {
60  		this.level = level;
61  	}
62  
63  }