forked from StarOpenSource/Engine
Add check if logging adapter has changed
This commit is contained in:
parent
a2a19c03aa
commit
91b2ab7a22
1 changed files with 3 additions and 1 deletions
|
@ -21,6 +21,7 @@ package de.staropensource.engine.ansi;
|
||||||
|
|
||||||
import de.staropensource.engine.base.annotation.EngineSubsystem;
|
import de.staropensource.engine.base.annotation.EngineSubsystem;
|
||||||
import de.staropensource.engine.base.implementable.SubsystemClass;
|
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.utility.information.EngineInformation;
|
||||||
import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem;
|
import de.staropensource.engine.base.implementation.versioning.StarOpenSourceVersioningSystem;
|
||||||
import de.staropensource.engine.base.logging.Logger;
|
import de.staropensource.engine.base.logging.Logger;
|
||||||
|
@ -71,7 +72,8 @@ public final class AnsiSubsystem extends SubsystemClass {
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
@Override
|
@Override
|
||||||
public void initializeSubsystem() {
|
public void initializeSubsystem() {
|
||||||
Logger.setLoggingAdapter(new AnsiLoggingAdapter());
|
if (Logger.getLoggingAdapter().getClass().getName().equals(PlainLoggingAdapter.class.getName()))
|
||||||
|
Logger.setLoggingAdapter(new AnsiLoggingAdapter());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** {@inheritDoc} */
|
/** {@inheritDoc} */
|
||||||
|
|
Loading…
Reference in a new issue