All level logging for debug dll only and info level for release dll.
This commit is contained in:
parent
9e7d11a97f
commit
e962a33159
1 changed files with 5 additions and 2 deletions
|
|
@ -72,8 +72,11 @@ namespace TShockAPI
|
|||
|
||||
string version = string.Format("TShock Version {0} ({1}) now running.", Version, VersionCodename);
|
||||
Console.WriteLine(version);
|
||||
|
||||
Log.Initialize(Path.Combine(SavePath, "log.txt"), LogLevel.All, false);
|
||||
#if DEBUG
|
||||
Log.Initialize(LogPath, LogLevel.All, false);
|
||||
#else
|
||||
Log.Initialize(LogPath, LogLevel.Info, false);
|
||||
#endif
|
||||
Log.Info(version);
|
||||
Log.Info("Starting...");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue