From b7b3c60736e3b8012a060aa36d997561f55f0761 Mon Sep 17 00:00:00 2001 From: fengzhizi715 Date: Fri, 9 Oct 2020 14:39:44 +0800 Subject: [PATCH] update build.gradle and changelog.md --- CHANGELOG.md | 5 +++++ build.gradle | 2 +- core/src/main/java/com/safframework/log/L.kt | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) 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