diff --git a/ansi/src/main/java/de/staropensource/engine/ansi/AnsiSubsystem.java b/ansi/src/main/java/de/staropensource/engine/ansi/AnsiSubsystem.java index 8ad05c310..a70180014 100644 --- a/ansi/src/main/java/de/staropensource/engine/ansi/AnsiSubsystem.java +++ b/ansi/src/main/java/de/staropensource/engine/ansi/AnsiSubsystem.java @@ -21,6 +21,7 @@ package de.staropensource.engine.ansi; import de.staropensource.engine.base.annotation.EngineSubsystem; import de.staropensource.engine.base.implementable.SubsystemClass; +import de.staropensource.engine.base.implementation.logging.PlainLoggingAdapter; import de.staropensource.engine.base.utility.information.EngineInformation; import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem; import de.staropensource.engine.base.logging.Logger; @@ -71,7 +72,8 @@ public final class AnsiSubsystem extends SubsystemClass { /** {@inheritDoc} */ @Override public void initializeSubsystem() { - Logger.setLoggingAdapter(new AnsiLoggingAdapter()); + if (Logger.getLoggingAdapter().getClass().getName().equals(PlainLoggingAdapter.class.getName())) + Logger.setLoggingAdapter(new AnsiLoggingAdapter()); } /** {@inheritDoc} */