Skip to content

Commit

Permalink
Merge pull request #48 from BernhardBerbuir/master
Browse files Browse the repository at this point in the history
Fixed issue #40
  • Loading branch information
oleg-nenashev committed Nov 2, 2014
2 parents 57ba481 + 13ef886 commit c4336a4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion LogAppenders.cs
Expand Up @@ -204,9 +204,14 @@ private void CopyStreamWithDateRotation(Stream data, string ext)
w.Close();
offset = i + 1;

// create a new file.
// create a new file and write everything to the new file.
w = new FileStream(BaseLogFileName + "_" + periodicRollingCalendar.format + ext, FileMode.Create);
rolled = true;
if (offset < len)
{
w.Write(buf, offset, len - offset);
break;
}
}
}

Expand Down

0 comments on commit c4336a4

Please sign in to comment.