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/database > enableLogging

enableLogging() function

Logs debugging information to the console.

Signature:

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.

Returns:

any