public LogFile(string siteName, bool readOnly)
{
_siteName = siteName;
_filePath = Path.Combine(
Environment.Instance.SiteReplicatorPath,
siteName);
_filePath = Path.Combine(_filePath, "deploy.log");
if (!readOnly)
{
_buffer = new StringBuilder(MaxBufferSize);
_writer = new StreamWriter(File.Open(
_filePath,
FileMode.Create,
FileAccess.ReadWrite,
FileShare.Read));
}
}