no message

This commit is contained in:
2025-11-12 08:50:12 +08:00
parent 508f6154f8
commit 7fd663e42d

View File

@@ -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
}