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
+27-11
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
# Serilog.Extensions.Logging.File [](https://nuget.org/packages/Serilog.Extensions.Logging.File)[](https://gitter.im/serilog/serilog)[](https://ci.appveyor.com/project/serilog/serilog-extensions-logging-file)
2
2
3
-
This package makes it a one-liner - `loggerFactory.AddFile()` - to configure top-quality file logging for ASP.NET Core apps.
3
+
This package makes it a one-liner - `loggingBuilder.AddFile()` - to configure top-quality file logging for ASP.NET Core apps.
4
4
5
5
* Text or JSON file output
6
6
* Files roll over on date; capped file size
7
7
* Request ids and event ids included with each message
8
-
*Writes are performed on a background thread
8
+
*Log writes are performed asynchronously
9
9
* Files are periodically flushed to disk (required for Azure App Service log collection)
10
10
* Fast, stable, battle-proven logging code courtesy of [Serilog](https://serilog.net)
11
11
@@ -19,18 +19,34 @@ You can get started quickly with this package, and later migrate to the full Ser
In addition to the properties shown above, the `"Logging"` configuration supports:
@@ -160,12 +176,12 @@ In addition to the properties shown above, the `"Logging"` configuration support
160
176
161
177
This package is opinionated, providing the most common/recommended options supported by Serilog. For more sophisticated configuration, using Serilog directly is recommened. See the instructions in [Serilog.AspNetCore](https://github.com/serilog/serilog-aspnetcore) to get started.
162
178
163
-
The following packages are used to provide `AddFile()`:
179
+
The following packages are used to provide `loggingBuilder.AddFile()`:
164
180
165
181
*[Serilog](https://github.com/serilog/serilog) - the core logging pipeline
166
-
*[Serilog.Sinks.RollingFile](https://github.com/serilog/serilog-sinks-rollingfile) - rolling file output
*[Serilog.Extensions.Logging](https://github.com/serilog/serilog-extensions-logging) - ASP.NET Core integration
169
-
*[Serilog.Sinks.Async](https://github.com/serilog/serilog-sinks-async) - async wrapper to perform log writes on a background thread
184
+
*[Serilog.Sinks.Async](https://github.com/serilog/serilog-sinks-async) - wrapper to perform log writes asynchronously
185
+
*[Serilog.Sinks.RollingFile](https://github.com/serilog/serilog-sinks-rollingfile) - rolling file output
170
186
171
187
If you decide to switch to the full Serilog API and need help, please drop into the [Gitter channel](https://gitter.im/serilog/serilog) or post your question on [Stack Overflow](http://stackoverflow.com/questions/tagged/serilog).
0 commit comments