You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/implementation-guides/logging-errors-and-warnings.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,7 +66,7 @@ public static AppBuilder BuildAvaloniaApp()
66
66
67
67
## Log Sinks
68
68
69
-
The `LogToTrace` extension method uses `TraceLogSink` which writes its messages to `Trace`. Avalonia supports custom sinks by implementing `ILogSink`. Assigning your custom sink to `Avalonia.Logging.Logger.Sink` will allow Avalonia to use it.
69
+
The `LogToTrace` extension method uses `StringLogSink`. Avalonia supports custom sinks by implementing `ILogSink`. Assigning your custom sink to `Avalonia.Logging.Logger.Sink` will allow Avalonia to use it.
70
70
71
71
```csharp title='Extension method to assign Logger.Sink'
72
72
usingAvalonia.Controls;
@@ -93,5 +93,5 @@ public static AppBuilder BuildAvaloniaApp()
93
93
```
94
94
95
95
:::info
96
-
View the source code on _GitHub_[`TraceLogSink.cs`](https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/Logging/TraceLogSink.cs)
96
+
View the source code on _GitHub_[`StringLogSink.cs`](https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Base/Logging/StringLogSink.cs)
0 commit comments