5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-13 23:49:35 +08:00
wails/v2/test/kitchensink/frontend/src/pages/Dialog/Open/code.jsx
2020-10-24 14:06:57 +11:00

17 lines
403 B
JavaScript

import { Log } from '@wails/runtime';
function doSomeOperation() {
// Do things
let value = doSomething();
Log.Print("A raw message");
Log.Trace("I got: " + value);
Log.Debug("A debug message");
Log.Info("An Info message");
Log.Warning("A Warning message");
Log.Error("An Error message");
}
function abort() {
// Do some things
Log.Fatal("I accidentally the whole application!");
}