Function setDebugLogWriter

Set a writer function to receive structured debug log entries from the SDK. Pass undefined to disable debug logging.

import {
setDebugLogWriter,
createConsoleLogWriter,
} from '@viamrobotics/sdk';
// Enable:
setDebugLogWriter(createConsoleLogWriter());
// Disable:
setDebugLogWriter(undefined);