File tree Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Expand file tree Collapse file tree 5 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ declare global {
25
25
trace ( formatStr ?: any , ...args : any [ ] ) : void ;
26
26
printMarkdown ( ...args : any [ ] ) : void ;
27
27
prepare ( item : any ) : string ;
28
+ isVerbose ( ) : boolean ;
28
29
}
29
30
30
31
interface Log4JSAppenderConfiguration extends Configuration {
Original file line number Diff line number Diff line change @@ -135,6 +135,10 @@ export class Logger implements ILogger {
135
135
this . info ( formattedMessage , { [ LoggerConfigData . skipNewLine ] : true } ) ;
136
136
}
137
137
138
+ public isVerbose ( ) : boolean {
139
+ return log4js . levels . DEBUG . isGreaterThanOrEqualTo ( this . getLevel ( ) ) ;
140
+ }
141
+
138
142
private logMessage ( inputData : any [ ] , logMethod : string ) : void {
139
143
this . initialize ( ) ;
140
144
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ export class CommonLoggerStub implements ILogger {
51
51
printInfoMessageOnSameLine ( message : string ) : void { }
52
52
async printMsgWithTimeout ( message : string , timeout : number ) : Promise < void > { }
53
53
printOnStderr ( formatStr ?: any , ...args : any [ ] ) : void { }
54
+ isVerbose ( ) : boolean { return false ; }
54
55
}
55
56
56
57
export class ErrorsStub implements IErrors {
Original file line number Diff line number Diff line change @@ -133,9 +133,11 @@ export class WebpackCompilerService extends EventEmitter implements IWebpackComp
133
133
const appResourcesPath = this . $projectData . getAppResourcesRelativeDirectoryPath ( ) ;
134
134
Object . assign ( envData ,
135
135
appPath && { appPath } ,
136
- appResourcesPath && { appResourcesPath }
136
+ appResourcesPath && { appResourcesPath } ,
137
137
) ;
138
138
139
+ envData . verbose = this . $logger . isVerbose ( ) ;
140
+
139
141
return envData ;
140
142
}
141
143
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ export class LoggerStub implements ILogger {
41
41
printInfoMessageOnSameLine ( message : string ) : void { }
42
42
async printMsgWithTimeout ( message : string , timeout : number ) : Promise < void > { }
43
43
printOnStderr ( formatStr ?: any , ...args : any [ ] ) : void { }
44
+
45
+ isVerbose ( ) : boolean { return false ; }
44
46
}
45
47
46
48
export class FileSystemStub implements IFileSystem {
You can’t perform that action at this time.
0 commit comments