fixes
This commit is contained in:
parent
8ed185299f
commit
4ecf486095
|
|
@ -77,10 +77,10 @@
|
|||
}
|
||||
catch (Exception loggerException)
|
||||
{
|
||||
jsRuntime.InvokeVoidAsync("console.error", $"{nameof(MainLayout)}->HandleError; Logger error! {loggerException.Message}");
|
||||
jsRuntime.InvokeVoidAsync("console.error", $"{nameof(MainLayout)}->HandleError; Logger error! {loggerException}");
|
||||
|
||||
jsRuntime.InvokeVoidAsync("console.error", $"{nameof(MainLayout)}->{memberName}; An error occurred: {exception.Message}");
|
||||
jsRuntime.InvokeVoidAsync("console.warn", $"{nameof(MainLayout)}->{memberName}; Error details: {exception.StackTrace}");
|
||||
jsRuntime.InvokeVoidAsync("console.error", $"{nameof(MainLayout)}->{memberName}; An error occurred: {exception}");
|
||||
//jsRuntime.InvokeVoidAsync("console.warn", $"{nameof(MainLayout)}->{memberName}; Error details: {exception.StackTrace}");
|
||||
}
|
||||
|
||||
// Log the error to server
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ public class BrowserConsoleLogWriter : AcTextLogWriterBase, IAcLogWriterClientBa
|
|||
|
||||
protected override void WriteText(string? logText, LogLevel logLevel)
|
||||
{
|
||||
_jsRuntime.InvokeVoidAsync(_invokeConsoleNames[logLevel], logText);
|
||||
_jsRuntime.InvokeVoidAsync(_invokeConsoleNames[logLevel], logText); //logText?.Replace(Environment.NewLine, "<br />"));
|
||||
}
|
||||
|
||||
//public void Info(string message)
|
||||
|
|
|
|||
Loading…
Reference in New Issue