Summary: The advantage of this is that anyone can now log without needing to carry around a Logger object. Primary reason is for making metrics less intrusive in the codebase. Reviewed By: passy Differential Revision: D13671368 fbshipit-source-id: 162ab1351a124683aef13983fc3bcec01385cd1a
18 lines
464 B
JavaScript
18 lines
464 B
JavaScript
/**
|
|
* Copyright 2018-present Facebook.
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
* @format
|
|
*/
|
|
|
|
import type LogManager from './Logger';
|
|
|
|
import type {Store} from '../reducers/index.js';
|
|
|
|
export default class BugReporter {
|
|
constructor(logManager: LogManager, store: Store) {}
|
|
async report(title: string, body: string): Promise<number> {
|
|
return Promise.resolve(-1);
|
|
}
|
|
}
|