Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

A console sink for the Blazor/Wasm environment

License

NotificationsYou must be signed in to change notification settings

serilog/serilog-sinks-browserconsole

Repository files navigation

A Serilog sink that takes advantage of the unique features of the browser console in the Blazor/WASM applications.

Versioning: This package tracks the versioning and target framework support of itsMicrosoft.AspNetCore.Components.WebAssembly dependency. Most users should choose the version ofSerilog.Sinks.BrowserConsole that matches their application's target framework. I.e. if you're targeting .NET 7.x, choose a 7.x version ofSerilog.Sinks.BrowserConsole. If you're targeting .NET 8.x, choose an 8.xSerilog.Sinks.BrowserConsole version, and so on.

What's it do?

The sink writes log events to the browser console. Unlike the normal Serilog console sink, which writes out formatted text, this sink takes advantage of the unique capabilities of the browser console to print interactive, fully-structured data.

Serilog.Sinks.BrowserConsole

Getting started

Configure the logging pipeline inProgram.Main():

// dotnet add package Serilog.Sinks.BrowserConsoleLog.Logger=newLoggerConfiguration().WriteTo.BrowserConsole().CreateLogger();Log.Information("Hello, browser!");

A more detailed example is availablein this repository.

About

A console sink for the Blazor/Wasm environment

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp