Browse Source

Remove double logging in DataStoreLoggerTarget

pull/165/head
Ionite 1 year ago
parent
commit
38be8da27f
No known key found for this signature in database
  1. 4
      StabilityMatrix.Avalonia.Diagnostics/LogViewer/DataStoreLoggerTarget.cs
  2. 9
      StabilityMatrix.Avalonia/App.axaml.cs

4
StabilityMatrix.Avalonia.Diagnostics/LogViewer/DataStoreLoggerTarget.cs

@ -71,10 +71,6 @@ public class DataStoreLoggerTarget : TargetWithLayout
Color = _config!.Colors[logLevel], Color = _config!.Colors[logLevel],
} }
); );
Debug.WriteLine(
$"--- [{logLevel.ToString()[..3]}] {message} - {logEvent.Exception?.Message ?? "no error"}"
);
} }
#endregion #endregion

9
StabilityMatrix.Avalonia/App.axaml.cs

@ -699,7 +699,14 @@ public sealed class App : Application
{ {
var debugTarget = builder var debugTarget = builder
.ForTarget("console") .ForTarget("console")
.WriteTo(new DebuggerTarget { Layout = "${message}" }) .WriteTo(
new DebuggerTarget
{
Layout =
"[${level:format=TriLetter}] "
+ "${callsite:includeNamespace=false:captureStackTrace=false}: ${message}"
}
)
.WithAsync(); .WithAsync();
var fileTarget = builder var fileTarget = builder

Loading…
Cancel
Save