com.danidemi.jlubricant.slf4j.utils.Default Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jlubricant-slf4j Show documentation
Show all versions of jlubricant-slf4j Show documentation
JLubricant extensions for slf4j
package com.danidemi.jlubricant.slf4j.utils;
import com.danidemi.jlubricant.slf4j.Level;
public class Default implements MessageToLogLevelPolicy {
private Level defaultLevel;
public Default(Level defaultLevel) {
super();
this.defaultLevel = defaultLevel;
}
@Override
public Level forMessage(String logmessage) {
return defaultLevel;
}
}