Skip to content

Commit 1dda43f

Browse files
committed
chore: device log coloring with updated deps
1 parent 3ce3b98 commit 1dda43f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/common/mobile/device-log-provider.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@ export class DeviceLogProvider extends DeviceLogProviderBase {
1414
protected $logger: ILogger,
1515
protected $logSourceMapService: Mobile.ILogSourceMapService,
1616
protected $timelineProfilerService: ITimelineProfilerService,
17-
protected $options: IOptions
17+
protected $options: IOptions,
1818
) {
1919
super($logFilter, $logger, $logSourceMapService);
2020
}
2121

2222
public logData(
2323
lineText: string,
2424
platform: string,
25-
deviceIdentifier: string
25+
deviceIdentifier: string,
2626
): void {
2727
// console.log(lineText)
2828
const loggingOptions = this.getDeviceLogOptionsForDevice(deviceIdentifier);
2929
let data = this.$logFilter.filterData(platform, lineText, loggingOptions);
3030
data = this.$logSourceMapService.replaceWithOriginalFileLocations(
3131
platform,
3232
data,
33-
loggingOptions
33+
loggingOptions,
3434
);
3535

3636
if (data) {
@@ -58,12 +58,12 @@ export class DeviceLogProvider extends DeviceLogProviderBase {
5858
private deviceColorMap = new Map<string, StyleFormat>();
5959

6060
private colorPool: StyleFormat[] = [
61-
"bgMagentaBright",
61+
"bgGray",
6262
"bgBlueBright",
6363
"bgWhiteBright",
6464
"bgCyanBright",
6565
"bgYellowBright",
66-
"bgGreenBright",
66+
"bgMagentaBright",
6767
];
6868
private colorPoolIndex = 0;
6969

@@ -150,7 +150,7 @@ export class DeviceLogProvider extends DeviceLogProviderBase {
150150
toLog.split("\n").forEach((actualLine) => {
151151
this.printLine(
152152
color.styleText(this.getDeviceColor(deviceIdentifier), " "),
153-
this.consoleLevelColor[level](actualLine)
153+
this.consoleLevelColor[level](actualLine),
154154
);
155155
});
156156
}

0 commit comments

Comments
 (0)