Skip to content

Commit

Permalink
Big refactoring of logging benchmarks
Browse files Browse the repository at this point in the history
Signed-off-by: Hendrik Ebbers <hendrik.ebbers@web.de>
  • Loading branch information
hendrikebbers committed Apr 28, 2024
1 parent fc8db9f commit 83b34f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 203 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

import com.swirlds.config.api.Configuration;
import com.swirlds.logging.api.internal.LoggingSystem;
import com.swirlds.logging.api.internal.configuration.ConfigLevelConverter;
import com.swirlds.logging.api.internal.configuration.MarkerStateConverter;
import com.swirlds.logging.benchmark.config.AppenderType;
import com.swirlds.logging.benchmark.config.Constants;
import com.swirlds.logging.benchmark.config.LoggingBenchmarkConfig;
Expand All @@ -38,7 +40,9 @@ public LoggingSystem createLoggingSystem(@NonNull final LoggingBenchmarkConfig c
private static Configuration createConfiguration(@NonNull final LoggingBenchmarkConfig config) {
com.swirlds.config.api.ConfigurationBuilder configurationBuilder =
com.swirlds.config.api.ConfigurationBuilder.create();
configurationBuilder = configurationBuilder.withValue("logging.level", "trace");
configurationBuilder = configurationBuilder.withValue("logging.level", "trace")
.withConverter(new ConfigLevelConverter())
.withConverter(new MarkerStateConverter());

if (config.forwardToSwirldsLogging()) {
configurationBuilder = configurationBuilder.withValue("logging.provider.log4j.enabled", "true");
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 83b34f2

Please sign in to comment.