diff --git a/v2/test/kitchensink/frontend/src/components/CodeBlock.svelte b/v2/test/kitchensink/frontend/src/components/CodeBlock.svelte
index 2935711c3..3eb4bd15d 100644
--- a/v2/test/kitchensink/frontend/src/components/CodeBlock.svelte
+++ b/v2/test/kitchensink/frontend/src/components/CodeBlock.svelte
@@ -20,11 +20,13 @@
$: code = isJs ? jsCode : goCode;
// Handle hiding example
- let showCode = true;
+ let showCode = false;
function toggleExample() {
showCode = !showCode;
}
+
+ export let id;
// Handle hiding example
let showRun = true;
@@ -40,8 +42,8 @@
Go
-
-
+
+
{#if description}
diff --git a/v2/test/kitchensink/frontend/src/pages/logging/Log/Log.svelte b/v2/test/kitchensink/frontend/src/pages/logging/Log/Log.svelte
new file mode 100644
index 000000000..6b84166af
--- /dev/null
+++ b/v2/test/kitchensink/frontend/src/pages/logging/Log/Log.svelte
@@ -0,0 +1,62 @@
+
+
+
+
+
+
+
+
diff --git a/v2/test/kitchensink/frontend/src/pages/logging/code.go b/v2/test/kitchensink/frontend/src/pages/logging/Log/code.go
similarity index 100%
rename from v2/test/kitchensink/frontend/src/pages/logging/code.go
rename to v2/test/kitchensink/frontend/src/pages/logging/Log/code.go
diff --git a/v2/test/kitchensink/frontend/src/pages/logging/code.jsx b/v2/test/kitchensink/frontend/src/pages/logging/Log/code.jsx
similarity index 100%
rename from v2/test/kitchensink/frontend/src/pages/logging/code.jsx
rename to v2/test/kitchensink/frontend/src/pages/logging/Log/code.jsx
diff --git a/v2/test/kitchensink/frontend/src/pages/logging/Logging.svelte b/v2/test/kitchensink/frontend/src/pages/logging/Logging.svelte
index 7241a11aa..2720ee16e 100644
--- a/v2/test/kitchensink/frontend/src/pages/logging/Logging.svelte
+++ b/v2/test/kitchensink/frontend/src/pages/logging/Logging.svelte
@@ -1,77 +1,36 @@
Logging
- Logging is part of the Wails Runtime and is accessed through the runtime.Log object. There are {options.length} methods available:
+ Logging is part of the Wails Runtime and is accessed through the runtime.Log object. There are {loglevels.length} methods available:
- {#each options as option}
+ {#each loglevels as option}
{option}
{/each}
- All methods will log to the console and Fatal will also exit the program.
+
+
+ The default logger will log all messages to the console EG:
+
+INFO | I am an Info message
+ERROR | I am an Error message
+WARN | I am a Warning message
+
+
+ Fatal will print the message and then immediately exit the program.
-
-