This commit is contained in:
Alex
2025-01-12 21:44:30 +00:00
parent c479e6aaf1
commit d85bd6c315
24 changed files with 286 additions and 134 deletions
+3 -4
View File
@@ -24,9 +24,10 @@ public class ClientLogController
public void ClientLog(ClientLogRequest logRequest)
{
var message = $"[{logRequest.Source}] {logRequest.Message}";
/* TODO: what do we do with this?
var color = logRequest.Color ?? LogTextColor.White;
var backgroundColor = logRequest.BackgroundColor ?? LogBackgroundColor.Default;
*/
// Allow supporting either string or enum levels
// Required due to the C# modules serializing enums as their name
@@ -40,13 +41,11 @@ public class ClientLogController
this._logger.Warning(message);
break;
case LogLevel.SUCCESS:
this._logger.Success(message);
break;
case LogLevel.INFO:
this._logger.Info(message);
break;
case LogLevel.CUSTOM:
this._logger.Log(message, color.ToString(), backgroundColor.ToString());
this._logger.Info(message/* TODO: , color.ToString(), backgroundColor.ToString()*/);
break;
case LogLevel.DEBUG:
this._logger.Debug(message);
+1 -1
View File
@@ -135,7 +135,7 @@ public class GameController
// flag as migrated
fullProfile.SptData.Migrations.Add("39x", _timeUtil.GetTimeStamp());
_logger.Success($"Migration of 3.9.x profile: {fullProfile.ProfileInfo.Username} completed successfully");
_logger.Info($"Migration of 3.9.x profile: {fullProfile.ProfileInfo.Username} completed successfully");
}
// with our method of converting type from array for this prop, we *might* not need this?