Log's name is now timestamp with yyyyMMddHHmmss.log format
This commit is contained in:
parent
13e00c7d2d
commit
9371c4972d
1 changed files with 2 additions and 1 deletions
|
|
@ -108,7 +108,8 @@ namespace TShockAPI
|
|||
Directory.CreateDirectory(SavePath);
|
||||
|
||||
#if DEBUG
|
||||
Log.Initialize(Path.Combine(SavePath, "log.txt"), LogLevel.All, false);
|
||||
DateTime now = DateTime.Now;
|
||||
Log.Initialize(Path.Combine(SavePath, now.ToString("yyyyMMddHHmmss")+".log"), LogLevel.All, false);
|
||||
#else
|
||||
Log.Initialize(Path.Combine(SavePath, "log.txt"), LogLevel.All & ~LogLevel.Debug, false);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue