All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.voovan.tools.log.Message Maven / Gradle / Ivy

There is a newer version: 4.3.8
Show newest version
package org.voovan.tools.log;

import java.util.Map;

/**
 * 日志消息对象
 * 
 * @author helyho
 *
 * Voovan Framework.
 * WebSite: https://github.com/helyho/Voovan
 * Licence: Apache v2 License
 */
public class Message {
	private String	level;
	private String	message;
	private Map tokens;

	public Message() {

	}

	public Message(String level, String message) {
		this.level = level;
		this.message = message;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Map getTokens() {
		return tokens;
	}

	public void setTokens(Map tokens) {
		this.tokens = tokens;
	}

	public static Message newInstance(String priority, String message) {
		return new Message(priority, message);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy