improvements
This commit is contained in:
parent
a56f96903e
commit
0ee715ed97
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue