no message
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user