diff --git a/CHANGELOG.md b/CHANGELOG.md index d23c23b..b447be5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ SAF-Kotlin-log === +Version 2.5.3 +--- +2020-10-09 +* L 的 printers 使用线程安全的 Set + Version 2.5.2 --- 2020-10-03 diff --git a/build.gradle b/build.gradle index 06f55f6..63141a2 100644 --- a/build.gradle +++ b/build.gradle @@ -26,7 +26,7 @@ ext { buildscript { System.properties['com.android.build.gradle.overrideVersionCheck'] = 'true' ext.kotlin_version = '1.4.10' - ext.l_version = '2.5.2' + ext.l_version = '2.5.3' repositories { google() diff --git a/core/src/main/java/com/safframework/log/L.kt b/core/src/main/java/com/safframework/log/L.kt index 2105810..8aef80a 100644 --- a/core/src/main/java/com/safframework/log/L.kt +++ b/core/src/main/java/com/safframework/log/L.kt @@ -19,7 +19,7 @@ object L { private var header: String? = "" private val handlers = LinkedList() private var firstHandler: BaseHandler - private val printers = mutableSetOf() + private val printers = Collections.synchronizedSet(mutableSetOf()) private var displayThreadInfo:Boolean = true private var displayClassInfo:Boolean = true private var converter: Converter?=null