Callable
Index
Modules
Interfaces
Type aliases
Functions
Type aliases
EmulatorMockTokenOptions
EventType
Functions
enableLogging
-
Logs debugging information to the console.
Parameters
-
Optional logger: boolean | ((a: string) => any)
Enables logging if
true; disables logging iffalse. You can also provide a custom logger function to control how things get logged. -
Optional persistent: boolean
Remembers the logging state between page refreshes if
true.
Returns any
-
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.
Gets the
Databaseservice for the default app or a given app.firebase.database()can be called with no arguments to access the default app'sDatabaseservice or asfirebase.database(app)to access theDatabaseservice associated with a specific app.firebase.databaseis also a namespace that can be used to access global constants and methods associated with theDatabaseservice.// Get the Database service for the default app var defaultDatabase = firebase.database();// Get the Database service for a specific app var otherDatabase = firebase.database(app);