improvements

This commit is contained in:
Loretta 2025-10-21 15:15:15 +02:00
parent a56f96903e
commit 0ee715ed97
2 changed files with 7 additions and 1 deletions

View File

@ -50,8 +50,12 @@ public class AcConsoleLogWriter : AcTextLogWriterBase, IAcConsoleLogWriter
Console.ForegroundColor = ConsoleColor.Cyan; Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine(logText); Console.WriteLine(logText);
break; break;
case LogLevel.Warning:
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine(logText);
break;
default: default:
Console.ForegroundColor = loglevel == LogLevel.Warning ? ConsoleColor.Yellow : ConsoleColor.Red; Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine($"{AcEnv.NL}{logText}{AcEnv.NL}"); Console.WriteLine($"{AcEnv.NL}{logText}{AcEnv.NL}");
break; break;
} }

View File

@ -180,6 +180,8 @@ public abstract class AcWebSignalRHubBase<TSignalRTags, TLogger>(IConfiguration
//[Conditional("DEBUG")] //[Conditional("DEBUG")]
private void LogContextUserNameAndId() private void LogContextUserNameAndId()
{ {
return;
string? userName = null; string? userName = null;
var userId = Guid.Empty; var userId = Guid.Empty;