diff --git a/v2/internal/runtime/js/core/log.js b/v2/internal/runtime/js/core/log.js index 72f9fb68..b0c7a714 100644 --- a/v2/internal/runtime/js/core/log.js +++ b/v2/internal/runtime/js/core/log.js @@ -25,6 +25,16 @@ function sendLogMessage(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 * diff --git a/v2/internal/runtime/js/runtime/log.js b/v2/internal/runtime/js/runtime/log.js index 2defed8f..5e32f5b8 100644 --- a/v2/internal/runtime/js/runtime/log.js +++ b/v2/internal/runtime/js/runtime/log.js @@ -11,6 +11,16 @@ The lightweight framework for web-like apps /* 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 *