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.
<PackageVersion Include="Serilog.Sinks.BrowserConsole" Version="8.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Serilog.Sinks.BrowserConsole" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package Serilog.Sinks.BrowserConsole@8.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Serilog.Sinks.BrowserConsole&version=8.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Serilog.Sinks.BrowserConsole&version=8.0.0
                    
Install as a Cake Tool

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (11)

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

Hexalith.Infrastructure.ClientAppOnWasm

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

Atlantis.Utility.Web

Package Description

Portfoliostalker.Client

Package Description

CG.Infrastructure.Logging

Infra Logging library with Serilog setup, extensions and database contexts

GitHub repositories (1)

Showing the top 1 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.
Version Downloads Last Updated
8.0.0 1,228,495 7/12/2024
8.0.0-dev-00065 292 7/12/2024
2.0.0 708,933 10/26/2023
2.0.0-dev-00061 306 10/26/2023
2.0.0-dev-00057 5,911 4/24/2023
2.0.0-dev-00053 9,385 11/9/2022
1.0.1-dev-00045 42,161 1/19/2022
1.0.0 832,676 5/11/2021
1.0.0-dev-00037 950 5/10/2021
1.0.0-dev-00035 516 5/10/2021
1.0.0-dev-00034 1,632 5/10/2021
1.0.0-dev-00031 547 5/10/2021
1.0.0-dev-00026 506 5/10/2021
1.0.0-dev-00019 26,570 9/24/2020
1.0.0-dev-00016 518 9/22/2020
1.0.0-dev-00012 20,554 9/28/2019
1.0.0-dev-00009 1,027 10/8/2018
1.0.0-dev-00007 947 10/8/2018
1.0.0-dev-00005 980 10/7/2018
1.0.0-dev-00003 2,061 10/7/2018