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: README.md
+28Lines changed: 28 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,3 +102,31 @@ You can alternatively configure Serilog using a delegate as shown below:
102
102
This has the advantage of making the `hostingContext`'s `Configuration` object available for configuration of the logger, but at the expense of recording `Exception`s raised earlier in program startup.
103
103
104
104
If this method is used, `Log.Logger` is assigned implicitly, and closed when the app is shut down.
105
+
106
+
### Writing to the Azure Diagnostics Log Stream
107
+
108
+
The Azure Diagnostic Log Stream ships events from any files in the `D:\home\LogFiles\` folder. To enable this for your app, first install the _Serilog.Sinks.File_ package:
109
+
110
+
```powershell
111
+
Install-Package Serilog.Sinks.File
112
+
```
113
+
114
+
Then add a file sink to your `LoggerConfiguration`, taking care to set the `shared` and `flushToDiskInterval` parameters:
0 commit comments