diff --git a/uni_modules/yk-log/utssdk/app-android/index.uts b/uni_modules/yk-log/utssdk/app-android/index.uts index 382dd1b..f2c6140 100644 --- a/uni_modules/yk-log/utssdk/app-android/index.uts +++ b/uni_modules/yk-log/utssdk/app-android/index.uts @@ -5,7 +5,7 @@ import FileOutputStream from 'java.io.FileOutputStream'; import File from 'java.io.File'; import Date from "java.util.Date"; import OutputStreamWriter from 'java.io.OutputStreamWriter'; - +import Log from 'android.util.Log'; const LOG_DISPLAY_NAME = "app_log.txt"; // 字符串转Uint8Array @@ -21,6 +21,7 @@ function stringToUint8Array(str: string) : ByteArray{ function createMessage(logMessage : string) : string { const timestamp = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS", Locale.getDefault()).format(new Date()); const logEntry = timestamp + " - " + logMessage + "\n"; + Log.d("systech",logMessage); return logEntry }