<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/database](./database.md) &gt; [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

