MCP Apps Kit - v0.5.0
    Preparing search index...

    Function useDebugLogger

    • Access the debug logger with automatic adapter injection

      The adapter is automatically configured when AppsProvider connects. Use this hook to access the logger and optionally configure it.

      Parameters

      • Optionalconfig: Partial<ClientDebugConfig>

        Optional configuration to apply

      Returns ClientDebugLogger

      The configured client debug logger

      function MyComponent() {
      const logger = useDebugLogger({ enabled: true, level: "debug" });

      const handleClick = () => {
      logger.info("Button clicked", { timestamp: Date.now() });
      };

      return <button onClick={handleClick}>Click me</button>;
      }