Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit 3d4a9a3

Browse files
committed
[database] - Add database namespace + enableLogging function to follow web docs
1 parent a61e264 commit 3d4a9a3

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/app/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@ export function firestore(app?: any): firebaseFirestoreModule.Firestore {
5252

5353
let functionsCache;
5454

55+
export namespace database {
56+
// This is just to follow the webs interface. On android and ios enable logging only accepts a boolean
57+
// By default logging is set to Info. We will set to debug if true and none if false.
58+
export function enableLogging(logger?: boolean | ((a: string) => any), persistent?: boolean): any {
59+
firebase.enableLogging(logger, persistent);
60+
}
61+
}
62+
5563
export function functions(app?: any): firebaseFunctionsModule.Functions {
5664
if (app) {
5765
console.log("The 'app' param is ignored at the moment.");

0 commit comments

Comments
 (0)