mirror of https://github.com/sismics/docs.git
55 lines
986 B
Java
55 lines
986 B
Java
package com.sismics.util.logback;
|
|
|
|
import ch.qos.logback.classic.Level;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
/**
|
|
* Log search criteria.
|
|
*
|
|
* @author jtremeaux
|
|
*/
|
|
public class LogCriteria {
|
|
|
|
/**
|
|
* Minimum logging level (DEBUG, WARN)...
|
|
*/
|
|
private Level minLevel;
|
|
|
|
/**
|
|
* Logger name / tag.
|
|
*/
|
|
private String tag;
|
|
|
|
/**
|
|
* Message logged.
|
|
*/
|
|
private String message;
|
|
|
|
public Level getMinLevel() {
|
|
return minLevel;
|
|
}
|
|
|
|
public LogCriteria setMinLevel(Level level) {
|
|
this.minLevel = level;
|
|
return this;
|
|
}
|
|
|
|
public String getTag() {
|
|
return tag;
|
|
}
|
|
|
|
public LogCriteria setTag(String tag) {
|
|
this.tag = StringUtils.lowerCase(tag);
|
|
return this;
|
|
}
|
|
|
|
public String getMessage() {
|
|
return message;
|
|
}
|
|
|
|
public LogCriteria setMessage(String message) {
|
|
this.message = StringUtils.lowerCase(message);
|
|
return this;
|
|
}
|
|
}
|