UNPKG

545 BJavaScriptView Raw
1/**
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @emails oncall+relay
8 *
9 * @format
10 */
11// flowlint ambiguous-object-type:error
12'use strict';
13
14var loggerImpl = function loggerImpl(eventData) {};
15
16module.exports = {
17 setLoggerImplementation: function setLoggerImplementation(loggerFn) {
18 loggerImpl = loggerFn;
19 },
20 logEvent: function logEvent(eventData) {
21 return loggerImpl(eventData);
22 }
23};
\No newline at end of file