Serilog.Sinks.BrowserConsole 8.0.0

Prefix Reserved
dotnet add package Serilog.Sinks.BrowserConsole --version 8.0.0                
NuGet\Install-Package Serilog.Sinks.BrowserConsole -Version 8.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Serilog.Sinks.BrowserConsole" Version="8.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Sinks.BrowserConsole --version 8.0.0                
#r "nuget: Serilog.Sinks.BrowserConsole, 8.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Serilog.Sinks.BrowserConsole as a Cake Addin
#addin nuget:?package=Serilog.Sinks.BrowserConsole&version=8.0.0

// Install Serilog.Sinks.BrowserConsole as a Cake Tool
#tool nuget:?package=Serilog.Sinks.BrowserConsole&version=8.0.0                

Serilog.Sinks.BrowserConsole Build status NuGet Pre Release

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 its Microsoft.AspNetCore.Components.WebAssembly dependency. Most users should choose the version of Serilog.Sinks.BrowserConsole that matches their application's target framework. I.e. if you're targeting .NET 7.x, choose a 7.x version of Serilog.Sinks.BrowserConsole. If you're targeting .NET 8.x, choose an 8.x Serilog.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 in Program.Main():

// dotnet add package Serilog.Sinks.BrowserConsole

Log.Logger = new LoggerConfiguration()
    .WriteTo.BrowserConsole()
    .CreateLogger();

Log.Information("Hello, browser!");

A more detailed example is available in this repository.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (10)

Showing the top 5 NuGet packages that depend on Serilog.Sinks.BrowserConsole:

Package Downloads
Sitko.Core.Blazor.Wasm

Sitko.Core is a set of libraries to help build .NET Core applications fast

Atlantis.Utility.Web

Package Description

Hexalith.Infrastructure.ClientAppOnWasm

Hexalith is a set of libraries to build a micro-service architecture.

Portfoliostalker.Client

Package Description

Udx.App

UdxFramework框架的Blazor项目公共UI类库

GitHub repositories (5)

Showing the top 5 popular GitHub repositories that depend on Serilog.Sinks.BrowserConsole:

Repository Stars
Webreaper/Damselfly
Damselfly is a server-based Photograph Management app. The goal of Damselfly is to index an extremely large collection of images, and allow easy search and retrieval of those images, using metadata such as the IPTC keyword tags, as well as the folder and file names. Damselfly includes support for object/face detection.
alugili/ModernArchitectureShop
The Microservices Online Shop is an application with a modern software architecture that is cleanly designed and based on.NET lightweight technologies. The shop has two build variations. The first variant is the classic Microservices Architectural Style. The second one is with Dapr. Dapr has a comprehensive infrastructure for building highly decoupled Microservices; for this reason, I am using Dapr to achieve the noble goal of building a highly scalable application with clean architecture and clean code.
adambajguz/Typin
Declarative framework for interactive CLI applications
datalust/serilog-sinks-seq
A Serilog sink that writes events to the Seq structured log server
sitkoru/Sitko.Core
Sitko.Core is a set of libraries to help build .NET Core applications fast
Version Downloads Last updated
8.0.0 44,362 7/12/2024
8.0.0-dev-00065 111 7/12/2024
2.0.0 201,821 10/26/2023
2.0.0-dev-00061 130 10/26/2023
2.0.0-dev-00057 4,719 4/24/2023
2.0.0-dev-00053 8,976 11/9/2022
1.0.1-dev-00045 30,093 1/19/2022
1.0.0 456,122 5/11/2021
1.0.0-dev-00037 699 5/10/2021
1.0.0-dev-00035 275 5/10/2021
1.0.0-dev-00034 1,230 5/10/2021
1.0.0-dev-00031 284 5/10/2021
1.0.0-dev-00026 283 5/10/2021
1.0.0-dev-00019 21,905 9/24/2020
1.0.0-dev-00016 288 9/22/2020
1.0.0-dev-00012 19,137 9/28/2019
1.0.0-dev-00009 715 10/8/2018
1.0.0-dev-00007 638 10/8/2018
1.0.0-dev-00005 676 10/7/2018
1.0.0-dev-00003 978 10/7/2018