mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 22:20:06 +08:00
[windows-x] Add LogTrace
This commit is contained in:
parent
c5d9fd1a0d
commit
e718fb8333
@ -11,6 +11,16 @@ The electron alternative for Go
|
||||
/* jshint esversion: 6 */
|
||||
|
||||
|
||||
/**
|
||||
* Log the given trace message with the backend
|
||||
*
|
||||
* @export
|
||||
* @param {string} message
|
||||
*/
|
||||
export function LogTrace(message) {
|
||||
window.runtime.LogTrace(message);
|
||||
}
|
||||
|
||||
/**
|
||||
* Log the given debug message with the backend
|
||||
*
|
||||
|
@ -7,6 +7,8 @@ interface runtime {
|
||||
|
||||
EventsOnce(eventName: string, callback: (data?: any) => void): void;
|
||||
|
||||
LogTrace(message: string): void;
|
||||
|
||||
LogDebug(message: string): void;
|
||||
|
||||
LogError(message: string): void;
|
||||
|
@ -1 +1 @@
|
||||
(()=>{var l=Object.defineProperty;var w=n=>l(n,"__esModule",{value:!0});var e=(n,o)=>{w(n);for(var t in o)l(n,t,{get:o[t],enumerable:!0})};var i={};e(i,{LogDebug:()=>p,LogError:()=>a,LogFatal:()=>f,LogInfo:()=>g,LogWarning:()=>m});function p(n){window.runtime.LogDebug(n)}function g(n){window.runtime.LogInfo(n)}function m(n){window.runtime.LogWarning(n)}function a(n){window.runtime.LogError(n)}function f(n){window.runtime.LogFatal(n)}var r={};e(r,{EventsEmit:()=>x,EventsOn:()=>s,EventsOnMultiple:()=>d,EventsOnce:()=>c});function d(n,o,t){window.runtime.EventsOnMultiple(n,o,t)}function s(n,o){OnMultiple(n,o,-1)}function c(n,o){OnMultiple(n,o,1)}function x(n){let o=[n].slice.call(arguments);return window.runtime.EventsEmit.apply(null,o)}var u={};e(u,{WindowReload:()=>E});function E(){window.runtime.WindowReload()}var v={...i,...r,...u};})();
|
||||
(()=>{var w=Object.defineProperty;var l=n=>w(n,"__esModule",{value:!0});var e=(n,o)=>{l(n);for(var t in o)w(n,t,{get:o[t],enumerable:!0})};var i={};e(i,{LogDebug:()=>g,LogError:()=>f,LogFatal:()=>c,LogInfo:()=>a,LogTrace:()=>p,LogWarning:()=>m});function p(n){window.runtime.LogTrace(n)}function g(n){window.runtime.LogDebug(n)}function a(n){window.runtime.LogInfo(n)}function m(n){window.runtime.LogWarning(n)}function f(n){window.runtime.LogError(n)}function c(n){window.runtime.LogFatal(n)}var r={};e(r,{EventsEmit:()=>x,EventsOn:()=>s,EventsOnMultiple:()=>d,EventsOnce:()=>L});function d(n,o,t){window.runtime.EventsOnMultiple(n,o,t)}function s(n,o){OnMultiple(n,o,-1)}function L(n,o){OnMultiple(n,o,1)}function x(n){let o=[n].slice.call(arguments);return window.runtime.EventsEmit.apply(null,o)}var u={};e(u,{WindowReload:()=>E});function E(){window.runtime.WindowReload()}var O={...i,...r,...u};})();
|
||||
|
Loading…
Reference in New Issue
Block a user