Files
flipper/desktop
Rubén Norte 28480ac891 Format Metro log messages using printf format
Summary:
In browsers and Node.js, console methods accept a printf format string as a first argument:

```
console.log('Hello %s', 'world');
//> Hello world
```

This is not currently supported in Flipper, which just renders the log messages as they come from Metro (as an array of values, most often strings).

This adds support for it in Flipper by using the `util.format` function from Node.js (which is the same method used by the console under the hood).

It is implemented in Flipper and not in Metro so we have the flexibility to format the values as we want in the future (e.g.: numbers with a specific color).

Reviewed By: yungsters, mweststrate

Differential Revision: D27154864

fbshipit-source-id: e807b67900ddaf3a7e8cd86795589bed088beecd
2021-03-19 04:01:56 -07:00
..
2021-03-03 04:42:43 -08:00
2021-03-18 05:45:28 -07:00
2021-03-17 16:32:39 -07:00
2021-02-18 08:37:16 -08:00
2021-03-16 15:03:42 -07:00
2020-06-19 03:54:49 -07:00
2021-03-17 16:32:39 -07:00
2021-03-17 16:32:39 -07:00