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(enabled: boolean, persistent?: boolean): any;

Parameters

Parameter Type Description
enabled boolean Enables logging if true, disables logging if false.
persistent boolean Remembers the logging state between page refreshes if true.

Returns:

any