mirror of https://github.com/qos-ch/slf4j
Merge pull request #113 from mciezadlo/patch-1
Added Category.assertLog(boolean, String)
This commit is contained in:
commit
94a6b8cc1c
|
|
@ -350,5 +350,10 @@ public class Category {
|
|||
public boolean getAdditivity() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void assertLog(boolean assertion, String msg) {
|
||||
if(!assertion)
|
||||
error(msg);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue