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.WriteLine(logText);
break;
case LogLevel.Warning:
Console.ForegroundColor = ConsoleColor.Yellow;
Console.WriteLine(logText);
break;
default:
Console.ForegroundColor = loglevel == LogLevel.Warning ? ConsoleColor.Yellow : ConsoleColor.Red;
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine($"{AcEnv.NL}{logText}{AcEnv.NL}");
break;
}

View File

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