diff --git a/pluto-plugins/plugins/logger/lib/src/main/java/com/pluto/plugins/logger/internal/LogsProcessor.kt b/pluto-plugins/plugins/logger/lib/src/main/java/com/pluto/plugins/logger/internal/LogsProcessor.kt index 7f80afc7..6b5afe71 100644 --- a/pluto-plugins/plugins/logger/lib/src/main/java/com/pluto/plugins/logger/internal/LogsProcessor.kt +++ b/pluto-plugins/plugins/logger/lib/src/main/java/com/pluto/plugins/logger/internal/LogsProcessor.kt @@ -58,15 +58,15 @@ internal class LogsProcessor private constructor() { } private fun consolePrint(level: Level, tag: String, message: String, tr: Throwable?, trace: StackTrace) { - val logTag = "${trace.formattedStack()} | $tag" + val newMessage = StringBuilder().append(message).append("\n").append("[logged from: ${trace.formattedStack()}]").toString() when (level) { - is Level.Debug -> Log.v(logTag, message, tr) - is Level.Error -> Log.e(logTag, message, tr) - is Level.Info -> Log.i(logTag, message, tr) - is Level.Warning -> Log.w(logTag, message, tr) - is Level.Verbose -> Log.v(logTag, message, tr) - is Level.WTF -> Log.wtf(logTag, message, tr) - is Level.Event -> Log.d(logTag, message) + is Level.Debug -> Log.v(tag, newMessage, tr) + is Level.Error -> Log.e(tag, newMessage, tr) + is Level.Info -> Log.i(tag, newMessage, tr) + is Level.Warning -> Log.w(tag, newMessage, tr) + is Level.Verbose -> Log.v(tag, newMessage, tr) + is Level.WTF -> Log.wtf(tag, newMessage, tr) + is Level.Event -> Log.d(tag, newMessage) } }