The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/app > onLog

onLog() function

Sets log handler for all Firebase SDKs.

Signature:

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

Returns:

void