Last active
November 6, 2019 14:25
-
-
Save javiercn/9987c480ef4199f315ff887e48ffb8aa to your computer and use it in GitHub Desktop.
Customers-Blazor-Debug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="_framework/blazor.server.js" autostart="false"></script> | |
<script> | |
(function start() { | |
Blazor.start({ | |
logLevel: 1, // LogLevel.Debug | |
configureSignalR: builder => builder.configureLogging("debug") // LogLevel.Debug | |
}); | |
})() | |
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Logging": { | |
"LogLevel": { | |
"Default": "Debug", | |
"System": "Debug", | |
"Microsoft": "Debug" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this to your _Host.cshtml | |
```razor | |
<script src="_framework/blazor.server.js" autostart="false"></script> | |
<script> | |
(function start() { | |
Blazor.start({ | |
logLevel: 1, // LogLevel.Debug | |
configureSignalR: builder => builder.configureLogging("debug") // LogLevel.Debug | |
}); | |
})() | |
</script> | |
``` | |
Replace the logging section with this in your appSettings.json | |
```json | |
{ | |
"Logging": { | |
"LogLevel": { | |
"Default": "Debug", | |
"System": "Debug", | |
"Microsoft": "Debug" | |
} | |
} | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment