voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
26 lines (15 loc) • 648 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/app](./app.md) > [onLog](./app.onlog.md)
## onLog() function
Sets log handler for all Firebase SDKs.
<b>Signature:</b>
```typescript
export declare function onLog(logCallback: LogCallback | null, options?: LogOptions): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| logCallback | LogCallback \| null | An optional custom log handler that executes user code whenever the Firebase SDK makes a logging call. |
| options | LogOptions | |
<b>Returns:</b>
void