Log uploading.

This commit is contained in:
Matthew Bowra-Dean
2010-05-26 19:23:58 +12:00
parent a6d0adbab3
commit e7c7a117a8
3 changed files with 50 additions and 1 deletions

View File

@@ -25,7 +25,9 @@ namespace OpenRA
{
public static class Log
{
static StreamWriter writer = File.CreateText(Environment.GetFolderPath(Environment.SpecialFolder.Personal) + Path.DirectorySeparatorChar + "openra.log.txt");
public static string Filename = Environment.GetFolderPath(Environment.SpecialFolder.Personal) + Path.DirectorySeparatorChar + "openra.log.txt";
static StreamWriter writer = File.CreateText(Filename);
static Log()
{
@@ -36,5 +38,10 @@ namespace OpenRA
{
writer.WriteLine(format, args);
}
public static void Close()
{
writer.Close();
}
}
}