mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-17 12:19:21 +08:00
[internal] expose log on ModuleBase
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @flow
|
||||
*/
|
||||
import { initialiseLogger } from './log';
|
||||
import { initialiseLogger, getLogger } from './log';
|
||||
import { initialiseNativeModule } from './native';
|
||||
|
||||
import type App from '../modules/core/app';
|
||||
@@ -54,4 +54,8 @@ export default class ModuleBase {
|
||||
get app(): App {
|
||||
return this._app;
|
||||
}
|
||||
|
||||
get log() {
|
||||
return getLogger(this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user