Merge branch 'master' of git://github.com/TShock/TShock
This commit is contained in:
commit
24f49c407e
1 changed files with 11 additions and 1 deletions
|
|
@ -117,7 +117,17 @@ namespace TShockAPI
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
string caller = "TShock";
|
StackTrace trace = new StackTrace();
|
||||||
|
StackFrame frame = null;
|
||||||
|
|
||||||
|
frame = trace.GetFrame(2);
|
||||||
|
|
||||||
|
string caller = "TShock: ";
|
||||||
|
|
||||||
|
if (frame != null && frame.GetMethod().DeclaringType != null)
|
||||||
|
{
|
||||||
|
caller += frame.GetMethod().DeclaringType.Name + ": ";
|
||||||
|
}
|
||||||
|
|
||||||
_logWriter.WriteLine(string.Format("{0} - {1}: {2}: {3}",
|
_logWriter.WriteLine(string.Format("{0} - {1}: {2}: {3}",
|
||||||
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture),
|
DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue