Logging is part of the Wails Runtime and is accessed through the runtime.Log object.
There are {loglevels.length} methods available:
{#each loglevels as option}
{option}
{/each}
Logs are only output if they are above or equal to the current log level. Example: If the current log level is
Info, then Trace and Debug messages will be surpressed.
Fatal will log the message and then immediately exit the program.
Print will send a raw message to the log regardless of log level.
The default logger will log messages to the console in the following format:
INFO | I am an Info message
ERROR | I am an Error message
WARN | I am a Warning message
Custom loggers may be given to your Wails application. More details here.