use of org.terasology.engine.config.facade.TelemetryConfigurationImpl in project Terasology by MovingBlocks.
the class TelemetrySubSystem method postInitialise.
@Override
public void postInitialise(Context rootContext) {
metrics.initialise(rootContext);
// Add the telemetryConfig adapter to context. It could be used in modules.
Config config = rootContext.get(Config.class);
TelemetryConfig telemetryConfig = config.getTelemetryConfig();
TelemetryConfiguration telemetryConfiguration = new TelemetryConfigurationImpl(telemetryConfig);
rootContext.put(TelemetryConfiguration.class, telemetryConfiguration);
addTelemetryLogstashAppender(rootContext);
setTelemetryDestination(rootContext);
}
Aggregations