File tree Expand file tree Collapse file tree 2 files changed +8
-19
lines changed Expand file tree Collapse file tree 2 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 1
- using System . Reflection ;
1
+ using System . Diagnostics ;
2
+ using System . Reflection ;
2
3
using Core ;
3
4
using Logging ;
4
5
@@ -33,7 +34,9 @@ public void Setup()
33
34
{
34
35
try
35
36
{
36
- Stopwatch . Measure ( log , "Global setup" , ( ) =>
37
+ Trace . Listeners . Add ( new ConsoleTraceListener ( ) ) ;
38
+
39
+ Logging . Stopwatch . Measure ( log , "Global setup" , ( ) =>
37
40
{
38
41
globalEntryPoint . Announce ( ) ;
39
42
globalEntryPoint . Tools . CreateWorkflow ( ) . DeleteNamespacesStartingWith ( TestNamespacePrefix , wait : true ) ;
@@ -55,6 +58,8 @@ public void TearDown()
55
58
deleteTrackedFiles : true ,
56
59
waitTillDone : true
57
60
) ;
61
+
62
+ Trace . Flush ( ) ;
58
63
}
59
64
}
60
65
}
Original file line number Diff line number Diff line change @@ -59,24 +59,8 @@ public void WriteLogTag()
59
59
60
60
protected static ILog CreateMainLog ( string fullName , string name )
61
61
{
62
- ILog log = new FileLog ( fullName ) ;
63
- log = ApplyConsoleOutput ( log ) ;
64
- return log ;
65
- }
66
-
67
- private static ILog ApplyConsoleOutput ( ILog log )
68
- {
69
- // If we're running as a release test, we'll split the log output
70
- // to the console as well.
71
-
72
- var testType = Environment . GetEnvironmentVariable ( "TEST_TYPE" ) ;
73
- if ( string . IsNullOrEmpty ( testType ) || testType . ToLowerInvariant ( ) != "release-tests" )
74
- {
75
- return log ;
76
- }
77
-
78
62
return new LogSplitter (
79
- log ,
63
+ new FileLog ( fullName ) ,
80
64
new ConsoleLog ( )
81
65
) ;
82
66
}
You can’t perform that action at this time.
0 commit comments