logging: use individual, names loggers
React Native doesn't define __filename nor __dirname so do it artisanally. In addition, this helps with centralizing the configuration passed to loggers.
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
bfe4237430
commit
5a934c071a
5
react/features/base/testing/logger.js
Normal file
5
react/features/base/testing/logger.js
Normal file
@@ -0,0 +1,5 @@
|
||||
// @flow
|
||||
|
||||
import { getLogger } from '../logging/functions';
|
||||
|
||||
export default getLogger('features/base/testing');
|
||||
@@ -1,14 +1,11 @@
|
||||
/* @flow */
|
||||
|
||||
import Logger from 'jitsi-meet-logger';
|
||||
|
||||
const logger = Logger.getLogger(__filename);
|
||||
// @flow
|
||||
|
||||
import { MiddlewareRegistry } from '../redux';
|
||||
|
||||
import { CONFERENCE_WILL_JOIN } from '../conference';
|
||||
import { JitsiConferenceEvents } from '../lib-jitsi-meet';
|
||||
import { setConnectionState } from './actions';
|
||||
import logger from './logger';
|
||||
|
||||
/**
|
||||
* The Redux middleware of the feature testing.
|
||||
|
||||
Reference in New Issue
Block a user