voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
25 lines (14 loc) • 590 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [enableLogging](./database.enablelogging_1.md)
## enableLogging() function
Logs debugging information to the console.
<b>Signature:</b>
```typescript
export declare function enableLogging(logger: (message: string) => unknown): any;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| logger | (message: string) => unknown | A custom logger function to control how things get logged. |
<b>Returns:</b>
any