com.danidemi.jlubricant.slf4j.utils.Composite 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
The newest version!
package com.danidemi.jlubricant.slf4j.utils;
import java.util.ArrayList;
import com.danidemi.jlubricant.slf4j.Level;
public class Composite implements MessageToLogLevelPolicy {
private ArrayList logs;
@Override
public Level forMessage(String logmessage) {
for (MessageToLogLevelPolicy messageToLogLevelPolicy : logs) {
Level forMessage = messageToLogLevelPolicy.forMessage(logmessage);
if(forMessage != null) return forMessage;
}
return null;
}
}