Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: add logger usage example

Adam Eivy412822aa24cb
diff --git a/server/lib/logger.example.js b/server/lib/logger.example.js
new file mode 100644
index 0000000000..7290dca5df
--- /dev/null
+++ b/server/lib/logger.example.js
@@ -0,0 +1,34 @@
+/**
+ * Example usage of the logger utility
+ */
+import * as logger from './logger.js';
+
+// Startup message
+logger.startup('Server running at http://localhost:5554');
+
+// Processing operations
+logger.process('Processing 15 items');
+
+// Success message
+logger.success('Operation completed successfully');
+
+// Configuration updates
+logger.config('Updated configuration settings');
+
+// Feature announcements
+logger.feature('New dashboard feature enabled');
+
+// Bug reports
+logger.bug('Detected memory leak in cache module');
+
+// Information
+logger.info('System health check passed');
+
+// Warnings
+logger.warning('API rate limit approaching threshold');
+
+// Debug messages (new type added for testing)
+logger.debug('Debug trace: user session initialized');
+
+// Error messages
+logger.error('Failed to connect to database');