All level logging for debug dll only and info level for release dll.

This commit is contained in:
ricky 2011-06-17 21:00:30 +10:00
parent 9e7d11a97f
commit e962a33159

View file

@ -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...");