From f1536de438bc264c1d12aa9509bc96ef7e8c20cd Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Mon, 14 Jul 2014 12:39:20 +0300 Subject: Allow reading the BulletSim detail log while the sim is running --- OpenSim/Region/CoreModules/Framework/Statistics/Logging/LogWriter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/Framework/Statistics/Logging/LogWriter.cs b/OpenSim/Region/CoreModules/Framework/Statistics/Logging/LogWriter.cs index 2fe9026..a176958 100755 --- a/OpenSim/Region/CoreModules/Framework/Statistics/Logging/LogWriter.cs +++ b/OpenSim/Region/CoreModules/Framework/Statistics/Logging/LogWriter.cs @@ -1,4 +1,4 @@ -/* +/* * Copyright (c) Contributors, http://opensimulator.org/ * See CONTRIBUTORS.TXT for a full list of copyright holders. * @@ -151,7 +151,7 @@ namespace OpenSim.Region.CoreModules.Framework.Statistics.Logging string path = (m_logDirectory.Length > 0 ? m_logDirectory + System.IO.Path.DirectorySeparatorChar.ToString() : "") + String.Format("{0}{1}.log", LogFileHeader, now.ToString("yyyyMMddHHmmss")); - m_logFile = new StreamWriter(File.Open(path, FileMode.Append, FileAccess.Write)); + m_logFile = new StreamWriter(File.Open(path, FileMode.Append, FileAccess.Write, FileShare.ReadWrite)); } if (m_logFile != null) { -- cgit v1.1