File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,8 @@ export class DeviceLogProvider extends DeviceLogProviderBase {
44
44
this . $logFilter . loggingLevel = logLevel . toUpperCase ( ) ;
45
45
}
46
46
47
- private consoleLogLevelRegex : RegExp = / ^ C O N S O L E ( L O G | I N F O | W A R N | E R R O R | T R A C E | I N F O ( .+ ) ) : \s / ;
47
+ private consoleLogLevelRegex : RegExp =
48
+ / ^ C O N S O L E ( L O G | I N F O | W A R N | E R R O R | T R A C E | I N F O ( .+ ) | T I M E ) : \s / ;
48
49
private consoleLevelColor : Record < string , ( line : string ) => string > = {
49
50
log : ( line ) => line ,
50
51
info : color . cyanBright ,
@@ -85,6 +86,9 @@ export class DeviceLogProvider extends DeviceLogProviderBase {
85
86
}
86
87
87
88
private logDataCore ( data : string , deviceIdentifier : string ) : void {
89
+ // strip android JS: prefix
90
+ data = data . replace ( / ^ J S : \s / , "" ) ;
91
+
88
92
// todo: use config to set logger - --env.classicLogs is temporary!
89
93
if ( "classicLogs" in ( this . $options . env ?? { } ) ) {
90
94
// legacy logging
@@ -137,6 +141,8 @@ export class DeviceLogProvider extends DeviceLogProviderBase {
137
141
if ( timeLabel ) {
138
142
level = "time" ;
139
143
timeLabel = timeLabel . replace ( "INFO " , "" ) . trim ( ) + ": " ;
144
+ } else if ( ! level && line . startsWith ( "Trace:" ) ) {
145
+ level = "trace" ;
140
146
} else {
141
147
level = level ?. toLowerCase ( ) ?? "log" ;
142
148
}
You can’t perform that action at this time.
0 commit comments