mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-12 15:09:33 +08:00
Add trace to JS runtime
This commit is contained in:
parent
302db87bec
commit
8dba591cda
@ -25,6 +25,16 @@ function sendLogMessage(level, message) {
|
|||||||
SendMessage('L' + level + message);
|
SendMessage('L' + level + message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log the given trace message with the backend
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @param {string} message
|
||||||
|
*/
|
||||||
|
export function Trace(message) {
|
||||||
|
sendLogMessage('T', message);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log the given debug message with the backend
|
* Log the given debug message with the backend
|
||||||
*
|
*
|
||||||
|
@ -11,6 +11,16 @@ The lightweight framework for web-like apps
|
|||||||
/* jshint esversion: 6 */
|
/* jshint esversion: 6 */
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Log the given trace message with the backend
|
||||||
|
*
|
||||||
|
* @export
|
||||||
|
* @param {string} message
|
||||||
|
*/
|
||||||
|
function Trace(message) {
|
||||||
|
window.wails.Log.Trace(message);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log the given debug message with the backend
|
* Log the given debug message with the backend
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user