mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-11 22:49:29 +08:00
17 lines
403 B
JavaScript
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!");
|
|
} |