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
-
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);