Log uploading.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user