001    /**
002     * Copyright 2010-2013 The Kuali Foundation
003     *
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     *
008     * http://www.opensource.org/licenses/ecl2.php
009     *
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    package org.kuali.common.util;
017    
018    public class LogMsg {
019    
020            LoggerLevel level = LoggerLevel.INFO;
021            String message;
022            Object[] args;
023    
024            public LogMsg() {
025                    this(null, null, LoggerLevel.INFO);
026            }
027    
028            public LogMsg(String message, Object[] args) {
029                    this(message, args, LoggerLevel.INFO);
030            }
031    
032            public LogMsg(String message, Object[] args, LoggerLevel level) {
033                    super();
034                    this.message = message;
035                    this.args = args;
036                    this.level = level;
037            }
038    
039            public String getMessage() {
040                    return message;
041            }
042    
043            public void setMessage(String message) {
044                    this.message = message;
045            }
046    
047            public Object[] getArgs() {
048                    return args;
049            }
050    
051            public void setArgs(Object[] args) {
052                    this.args = args;
053            }
054    
055            public LoggerLevel getLevel() {
056                    return level;
057            }
058    
059            public void setLevel(LoggerLevel level) {
060                    this.level = level;
061            }
062    
063    }