diff --git a/core/java/src/net/i2p/I2PAppContext.java b/core/java/src/net/i2p/I2PAppContext.java index 7b0d321e1..49c7223ea 100644 --- a/core/java/src/net/i2p/I2PAppContext.java +++ b/core/java/src/net/i2p/I2PAppContext.java @@ -721,6 +721,20 @@ public class I2PAppContext { } } + /** + * Overwrites the LogManager instance to be used by the router. + * This should only be called after the Router is instantiated but + * before it is started. Calling this at any other time can have + * unpredictable side effects. + * @since 0.9.41 + */ + public void setLogManager(LogManager logManager) { + synchronized (_lock8) { + _logManager = logManager; + _logManagerInitialized = true; + } + } + /** * There is absolutely no good reason to make this context specific, * other than for consistency, and perhaps later we'll want to