org.voovan.tools.log.Message Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of voovan-framework Show documentation
Show all versions of voovan-framework Show documentation
Voovan is a java framwork and it not depends on any third-party framework.
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