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:
Saúl Ibarra Corretgé
2019-08-21 16:50:00 +02:00
committed by Saúl Ibarra Corretgé
parent bfe4237430
commit 5a934c071a
118 changed files with 330 additions and 139 deletions

View File

@@ -0,0 +1,5 @@
// @flow
import { getLogger } from '../logging/functions';
export default getLogger('features/base/testing');

View File

@@ -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.