Sanity Library Reference Docs
    Preparing search index...
    • Create a logger for a specific namespace

      Parameters

      • namespace: string

        A string identifier for the logging domain (e.g., 'auth', 'document')

      • OptionalbaseContext: LogContext

        Optional base context to include in all log messages

      Returns Logger

      If baseContext includes an instanceContext property (with projectId, dataset, instanceId), it will be automatically formatted into the log output for easier debugging of multi-instance scenarios.