Stream server logs to browser
Summary: Makes Flipper Logs tab functional for Flipper Browser Reviewed By: lblasa Differential Revision: D37459924 fbshipit-source-id: 4ebf3d47fbbf90bb367e01986b12dec782b03c34
This commit is contained in:
committed by
Facebook GitHub Bot
parent
c1d959d62e
commit
dcbc7c40bb
@@ -45,6 +45,14 @@ async function start() {
|
||||
},
|
||||
);
|
||||
|
||||
flipperServer.on('server-log', (logEntry) => {
|
||||
console[logEntry.type](
|
||||
`[${logEntry.namespace}] (${new Date(
|
||||
logEntry.time,
|
||||
).toLocaleTimeString()}): ${logEntry.msg}`,
|
||||
);
|
||||
});
|
||||
|
||||
await flipperServer.connect();
|
||||
const flipperServerConfig = await flipperServer.exec('get-config');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user