use of com.codingchili.core.logging.AbstractLogger in project chili-core by codingchili.
the class SystemContextTest method setUp.
@Before
public void setUp() {
this.settings = Configurations.system();
settings.getMetrics().setRate(100);
settings.getMetrics().setEnabled(true);
this.context = new ContextMock() {
@Override
public Logger logger(Class aClass) {
return new AbstractLogger(getClass()) {
@Override
public void onMetricsSnapshot(JsonObject metrics) {
listener.onMetric(metrics);
}
};
}
@Override
public SystemSettings system() {
return settings;
}
};
}
Aggregations