| EMMA Coverage Report (generated Mon Aug 23 17:21:34 CEST 2010) |
|---|
| [all classes][dmg.util.logback] |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| RootFilterThresholds.java | 100% (1/1) | 40% (2/5) | 35% (7/20) | 29% (2/7) |
| name | class, % | method, % | block, % | line, % |
|---|---|---|---|---|
| class RootFilterThresholds | 100% (1/1) | 40% (2/5) | 35% (7/20) | 29% (2/7) |
| RootFilterThresholds (): void | 0% (0/1) | 0% (0/3) | 0% (0/1) | |
| addFilter (String): void | 0% (0/1) | 0% (0/4) | 0% (0/2) | |
| setThreshold (LoggerName, String, Level): void | 0% (0/1) | 0% (0/6) | 0% (0/2) | |
| <static initializer> | 100% (1/1) | 100% (5/5) | 100% (1/1) | |
| getInstance (): FilterThresholds | 100% (1/1) | 100% (2/2) | 100% (1/1) |
| 1 | package dmg.util.logback; |
| 2 | |
| 3 | import ch.qos.logback.classic.Level; |
| 4 | |
| 5 | /** |
| 6 | * Utility class holding the singleton root of the FilterThresholds |
| 7 | * hierarchy. |
| 8 | */ |
| 9 | public abstract class RootFilterThresholds |
| 10 | { |
| 11 | private final static FilterThresholds _instance = |
| 12 | new FilterThresholds(); |
| 13 | |
| 14 | public static FilterThresholds getInstance() |
| 15 | { |
| 16 | return _instance; |
| 17 | } |
| 18 | |
| 19 | public static void addFilter(String filter) |
| 20 | { |
| 21 | _instance.addFilter(filter); |
| 22 | } |
| 23 | |
| 24 | public static void setThreshold(LoggerName logger, String filter, Level level) |
| 25 | { |
| 26 | _instance.setThreshold(logger, filter, level); |
| 27 | } |
| 28 | } |
| [all classes][dmg.util.logback] |
| EMMA 2.0.5312 (C) Vladimir Roubtsov |