mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-07 05:57:47 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
namespace Roblox.RccServiceArbiter
|
||||
{
|
||||
internal static class Log
|
||||
{
|
||||
static StreamWriter log;
|
||||
static Log()
|
||||
{
|
||||
if (Properties.Settings.Default.LogTransactions)
|
||||
{
|
||||
log = new StreamWriter(String.Format("C:\\arbiter-log{0}.txt", Guid.NewGuid().ToString()));
|
||||
}
|
||||
}
|
||||
|
||||
static internal void Event(string message)
|
||||
{
|
||||
if (log != null)
|
||||
{
|
||||
lock (log)
|
||||
{
|
||||
log.WriteLine(String.Format("{0} - {1}", DateTime.Now.ToString(), message));
|
||||
log.Flush();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user