Migrate logger
Summary: Removed defunct log filtering functionality, but we probably want to rebuild that. Funny that tsc caught this as non functioning but Flow happily accepted it. Reviewed By: danielbuechele Differential Revision: D16690959 fbshipit-source-id: b079dd6faba83ca0c443d00cbb69c8ff95c4fa69
This commit is contained in:
committed by
Facebook Github Bot
parent
e56d3a4c6d
commit
b42abcbb59
@@ -5,14 +5,14 @@
|
||||
* @format
|
||||
*/
|
||||
|
||||
import type {TrackType, Logger} from '../fb-interfaces/Logger';
|
||||
import type {Store} from '../reducers/index.tsx';
|
||||
import {TrackType, Logger} from '../fb-interfaces/Logger';
|
||||
import {Store} from '../reducers/index';
|
||||
import ScribeLogger from './ScribeLogger';
|
||||
|
||||
let instance: ?StubLogger = null;
|
||||
let instance: StubLogger = null;
|
||||
|
||||
type Args = {
|
||||
isHeadless?: boolean,
|
||||
isHeadless?: boolean;
|
||||
};
|
||||
|
||||
class StubLogger implements Logger {
|
||||
@@ -22,9 +22,9 @@ class StubLogger implements Logger {
|
||||
|
||||
scribeLogger: ScribeLogger;
|
||||
|
||||
track(type: TrackType, event: string, data: ?any, plugin?: string) {}
|
||||
track(type: TrackType, event: string, data?: any, plugin?: string) {}
|
||||
|
||||
trackTimeSince(mark: string, eventName: ?string) {}
|
||||
trackTimeSince(mark: string, eventName?: string) {}
|
||||
|
||||
info(data: any, category: string) {}
|
||||
|
||||
Reference in New Issue
Block a user