Fixed issue #26

The first file open should be append.
pull/37/merge
Kohsuke Kawaguchi 2014-03-31 18:20:16 -07:00
parent ed0633b53f
commit db9161386e
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ namespace winsw
periodicRollingCalendar.init();
byte[] buf = new byte[1024];
FileStream w = new FileStream(BaseLogFileName + "_" + periodicRollingCalendar.format + ext, FileMode.Create);
FileStream w = new FileStream(BaseLogFileName + "_" + periodicRollingCalendar.format + ext, FileMode.Append);
while (true)
{
int len = data.Read(buf, 0, buf.Length);