File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ You can get started quickly with this package, and later migrate to the full Ser
13
13
14
14
### Getting started
15
15
16
- Add [ the NuGet package] ( https://nuget.org/packages/serilog.extensions.logging.file ) to the ` "dependencies" ` section of your ` project.json ` file:
16
+ ** 1. ** Add [ the NuGet package] ( https://nuget.org/packages/serilog.extensions.logging.file ) to the ` "dependencies" ` section of your ` project.json ` file:
17
17
18
18
``` json
19
19
"dependencies" : {
20
20
"Serilog.Extensions.Logging.File" : " 1.0.0"
21
21
}
22
22
```
23
23
24
- In your ` Startup ` class's ` Configure() ` method, call ` AddFile() ` on the provided ` loggerFactory ` .
24
+ ** 2. ** In your ` Startup ` class's ` Configure() ` method, call ` AddFile() ` on the provided ` loggerFactory ` .
25
25
26
26
``` csharp
27
27
public void Configure (IApplicationBuilder app ,
@@ -31,7 +31,7 @@ In your `Startup` class's `Configure()` method, call `AddFile()` on the provided
31
31
loggerFactory .AddFile (" Logs/myapp-{Date}.txt" );
32
32
```
33
33
34
- The framework will inject `ILogger ` instances into controllers and other classes :
34
+ ** Done ! ** The framework will inject `ILogger ` instances into controllers and other classes :
35
35
36
36
```csharp
37
37
class HomeController : Controller
You can’t perform that action at this time.
0 commit comments