[internal] expose log on ModuleBase

This commit is contained in:
Salakar
2018-09-21 00:08:28 +01:00
parent 0c53da4ce8
commit fef70f3235

View File

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