Home > @firebase/database > enableLogging
enableLogging() function
Logs debugging information to the console.
Signature:
export declare function enableLogging(enabled: boolean, persistent?: boolean): any;
Parameters
| Parameter | Type | Description |
|---|---|---|
| enabled | boolean | Enables logging if true, disables logging if false. |
| persistent | boolean | Remembers the logging state between page refreshes if true. |
Returns:
any