ReSharper Code optimization
This commit is contained in:
parent
8b99bfacc0
commit
dfc4325e59
10 changed files with 233 additions and 201 deletions
|
|
@ -1,11 +1,7 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace TShockAPI
|
||||
{
|
||||
|
|
@ -82,7 +78,8 @@ namespace TShockAPI
|
|||
_logWriter = new StreamWriter(_filename + "." + Process.GetCurrentProcess().Id.ToString(), true);
|
||||
}*/
|
||||
|
||||
String text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture) + " - " + caller + message;
|
||||
String text = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture) + " - " + caller +
|
||||
message;
|
||||
|
||||
Console.WriteLine(text);
|
||||
|
||||
|
|
@ -154,4 +151,4 @@ namespace TShockAPI
|
|||
Write(message, LogLevel.Debug);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue