@@ -54,7 +54,7 @@ protected Analyser(
5454 this . addAssemblyTrapPrefix = addAssemblyTrapPrefix ;
5555 this . progressMonitor = pm ;
5656
57- Logger . Log ( Severity . Info , "EXTRACTION STARTING at {0}" , DateTime . Now ) ;
57+ Logger . LogInfo ( $ "EXTRACTION STARTING at { DateTime . Now } " ) ;
5858 stopWatch . Start ( ) ;
5959 }
6060
@@ -175,7 +175,7 @@ private void DoAnalyseReferenceAssembly(PortableExecutableReference r)
175175 }
176176 catch ( Exception ex ) // lgtm[cs/catch-of-all-exceptions]
177177 {
178- Logger . Log ( Severity . Error , " Unhandled exception analyzing {0 }: {1}" , r . FilePath , ex ) ;
178+ Logger . LogError ( $ " Unhandled exception analyzing { r . FilePath } : { ex } " ) ;
179179 }
180180 }
181181
@@ -251,7 +251,7 @@ private void DoAnalyseCompilation()
251251 }
252252 catch ( Exception ex ) // lgtm[cs/catch-of-all-exceptions]
253253 {
254- Logger . Log ( Severity . Error , " Unhandled exception analyzing {0} : {1}" , "compilation" , ex ) ;
254+ Logger . LogError ( $ " Unhandled exception analyzing compilation : { ex } " ) ;
255255 }
256256 }
257257
@@ -315,12 +315,12 @@ public void PerformExtraction(int numberOfThreads)
315315 public virtual void Dispose ( )
316316 {
317317 stopWatch . Stop ( ) ;
318- Logger . Log ( Severity . Info , " Peak working set = {0} MB" , Process . GetCurrentProcess ( ) . PeakWorkingSet64 / ( 1024 * 1024 ) ) ;
318+ Logger . LogInfo ( $ " Peak working set = { Process . GetCurrentProcess ( ) . PeakWorkingSet64 / ( 1024 * 1024 ) } MB" ) ;
319319
320320 if ( TotalErrors > 0 )
321- Logger . Log ( Severity . Info , "EXTRACTION FAILED with {0 } error{1} in {2}" , TotalErrors , TotalErrors == 1 ? "" : "s" , stopWatch . Elapsed ) ;
321+ Logger . LogInfo ( $ "EXTRACTION FAILED with { TotalErrors } error{ ( TotalErrors == 1 ? "" : "s" ) } in { stopWatch . Elapsed } " ) ;
322322 else
323- Logger . Log ( Severity . Info , "EXTRACTION SUCCEEDED in {0}" , stopWatch . Elapsed ) ;
323+ Logger . LogInfo ( $ "EXTRACTION SUCCEEDED in { stopWatch . Elapsed } " ) ;
324324
325325 compilationTrapFile ? . Dispose ( ) ;
326326 }
@@ -345,9 +345,9 @@ public virtual void Dispose()
345345 /// </summary>
346346 public void LogExtractorInfo ( )
347347 {
348- Logger . Log ( Severity . Info , " Extractor: {0}" , Environment . GetCommandLineArgs ( ) . First ( ) ) ;
349- Logger . Log ( Severity . Info , " Extractor version: {0}" , Version ) ;
350- Logger . Log ( Severity . Info , " Current working directory: {0}" , Directory . GetCurrentDirectory ( ) ) ;
348+ Logger . LogInfo ( $ " Extractor: { Environment . GetCommandLineArgs ( ) . First ( ) } " ) ;
349+ Logger . LogInfo ( $ " Extractor version: { Version } " ) ;
350+ Logger . LogInfo ( $ " Current working directory: { Directory . GetCurrentDirectory ( ) } " ) ;
351351 }
352352
353353 private static string Version
0 commit comments