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);