voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
26 lines (15 loc) • 712 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [enableLogging](./database.enablelogging.md)
## enableLogging() function
Logs debugging information to the console.
<b>Signature:</b>
```typescript
export declare function enableLogging(enabled: boolean, persistent?: boolean): any;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| enabled | boolean | Enables logging if <code>true</code>, disables logging if <code>false</code>. |
| persistent | boolean | Remembers the logging state between page refreshes if <code>true</code>. |
<b>Returns:</b>
any