File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,8 @@ static void ConfigureLogging(Arguments arguments)
139
139
logFile . Directory . Create ( ) ;
140
140
}
141
141
142
- if ( ! logFile . Exists )
142
+ using ( logFile . CreateText ( ) )
143
143
{
144
- using ( logFile . CreateText ( ) )
145
- {
146
- }
147
144
}
148
145
149
146
writeActions . Add ( x => WriteLogEntry ( arguments , x ) ) ;
@@ -163,7 +160,7 @@ static void ConfigureLogging(Arguments arguments)
163
160
static void WriteLogEntry ( Arguments arguments , string s )
164
161
{
165
162
var contents = string . Format ( "{0}\t \t {1}\r \n " , DateTime . Now . ToString ( "yyyy-MM-dd HH:mm:ss" ) , s ) ;
166
- File . AppendAllText ( arguments . LogFilePath , contents ) ;
163
+ File . WriteAllText ( arguments . LogFilePath , contents ) ;
167
164
}
168
165
169
166
static List < string > GetArgumentsWithoutExeName ( )
You can’t perform that action at this time.
0 commit comments