Move LoggerThreadingHandler, support start & stop
This commit is contained in:
parent
31c015dc65
commit
479c965c1a
4 changed files with 10 additions and 2 deletions
|
@ -27,7 +27,7 @@ import de.staropensource.engine.base.implementation.logging.KotlinShutdownHandle
|
|||
import de.staropensource.engine.base.implementation.logging.crashcategory.InfoCrashCategory
|
||||
import de.staropensource.engine.base.implementation.logging.formatbuilder.SOSLSv2FormatBuilder
|
||||
import de.staropensource.engine.base.logging.Logger
|
||||
import de.staropensource.engine.base.logging.LoggerThreadingHandler
|
||||
import de.staropensource.engine.base.implementable.logging.LoggerThreadingHandler
|
||||
import de.staropensource.engine.base.type.logging.ChannelSettings
|
||||
import de.staropensource.engine.base.type.logging.Feature
|
||||
import de.staropensource.engine.base.type.logging.Level
|
||||
|
@ -166,6 +166,11 @@ class EngineConfiguration private constructor() {
|
|||
*/
|
||||
@JvmStatic
|
||||
var logThreadingHandler: LoggerThreadingHandler? = null
|
||||
set(value) {
|
||||
logThreadingHandler?.stop()
|
||||
logThreadingHandler = value
|
||||
logThreadingHandler?.start()
|
||||
}
|
||||
|
||||
/**
|
||||
* Controls the [FormatBuilder] to use.
|
||||
|
|
|
@ -18,8 +18,9 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package de.staropensource.engine.base.logging
|
||||
package de.staropensource.engine.base.implementable.logging
|
||||
|
||||
import de.staropensource.engine.base.logging.Processor
|
||||
import de.staropensource.engine.base.type.logging.Call
|
||||
|
||||
/**
|
|
@ -21,6 +21,7 @@
|
|||
package de.staropensource.engine.base.logging
|
||||
|
||||
import de.staropensource.engine.base.EngineConfiguration
|
||||
import de.staropensource.engine.base.implementable.logging.LoggerThreadingHandler
|
||||
import de.staropensource.engine.base.type.logging.Call
|
||||
import de.staropensource.engine.base.type.logging.Level
|
||||
import kotlinx.datetime.Clock
|
||||
|
|
|
@ -24,6 +24,7 @@ import de.staropensource.engine.base.EngineConfiguration
|
|||
import de.staropensource.engine.base.implementable.logging.Adapter
|
||||
import de.staropensource.engine.base.implementable.logging.FormatBuilder
|
||||
import de.staropensource.engine.base.implementable.logging.Formatter
|
||||
import de.staropensource.engine.base.implementable.logging.LoggerThreadingHandler
|
||||
import de.staropensource.engine.base.type.logging.Call
|
||||
import de.staropensource.engine.base.type.logging.ChannelSettings
|
||||
import de.staropensource.engine.base.type.logging.Feature
|
||||
|
|
Loading…
Reference in a new issue