Skip to content

Commit f7b8df4

Browse files
Update readme.md
1 parent 318f7dc commit f7b8df4

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,16 @@ Some of the log levels are not available as distinct methods in the browser's de
4040

4141
## Setup
4242

43-
The following snippet shows how to setup the browser console logger by registering it for dependency injection in the ```Program.cs``` of the application.
43+
The following snippet shows how to setup the browser console logger by registering it for dependency injection in the ```Startup.cs``` of the application.
4444

4545
```c#
46-
var serviceProvider = new BrowserServiceProvider(services =>
46+
public void ConfigureServices(IServiceCollection services)
4747
{
48-
// Add Blazor.Extensions.Logging.BrowserConsoleLogger
4948
services.AddLogging(builder => builder
50-
.AddBrowserConsole() // Register the logger with the ILoggerBuilder
51-
.SetMinimumLevel(LogLevel.Information) // Set the minimum log level to Information
49+
.AddBrowserConsole() // Add Blazor.Extensions.Logging.BrowserConsoleLogger
50+
.SetMinimumLevel(LogLevel.Trace)
5251
);
53-
});
52+
}
5453
```
5554

5655
## Usage

0 commit comments

Comments
 (0)