DevKit.Logging.Sharp 0.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package DevKit.Logging.Sharp --version 0.1.1
                    
NuGet\Install-Package DevKit.Logging.Sharp -Version 0.1.1
                    
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="DevKit.Logging.Sharp" Version="0.1.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DevKit.Logging.Sharp" Version="0.1.1" />
                    
Directory.Packages.props
<PackageReference Include="DevKit.Logging.Sharp" />
                    
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 DevKit.Logging.Sharp --version 0.1.1
                    
#r "nuget: DevKit.Logging.Sharp, 0.1.1"
                    
#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 DevKit.Logging.Sharp@0.1.1
                    
#: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=DevKit.Logging.Sharp&version=0.1.1
                    
Install as a Cake Addin
#tool nuget:?package=DevKit.Logging.Sharp&version=0.1.1
                    
Install as a Cake Tool

DevKit.Logging.Sharp

A tiny startup reporter for .NET hosts — timestamped boot lines and an optional progress bar.

Not a general logger (use Serilog/NLog at runtime). Not a splash screen.

Quick start

public static void Main(string[] args)
{
    using var boot = HostLog.Open(ref args);   // strips --devkit-logging … from args

    boot.BeginProgress(4);
    boot.Write("Starting…");
    boot.CompleteStep("Host built");

    RunApp(args);   // remaining CLI args
}

Command line

MyApp.exe --devkit-logging console
MyApp.exe --devkit-logging file C:\temp\boot.log
MyApp.exe                                  → logger disabled (zero overhead)
Flag Behaviour
--devkit-logging console Text + progress bar in a console (allocates one on Windows GUI)
--devkit-logging file <path> Boot log file, overwritten on each run
(none) NullStartupSession — zero overhead

Malformed switches are reported on stderr and ignored.

Host types

Host --devkit-logging console
Console Exe log in the same terminal
GUI WinExe separate console window (AllocConsole), auto-closed when progress completes
Any + file no console needed

Same Main code for all hosts — only the CLI differs. In a GUI app you watch boot progress on a live console instead of staring at nothing for a few seconds.

API

HostLog.Open(ref string[] args)      // parse CLI + open session
HostLog.Open(HostLogOptions)         // programmatic
HostLog.Attach(string? name = null)  // remote runner / named pipe

IStartupSession : IDisposable
  bool IsEnabled
  void Write(string message)
  void BeginProgress(int totalSteps)   // nested calls open sub-phases
  void CompleteStep(string? message = null)
  void Close()

Detached runner

DevKit.Logging.Runner (in the repo, not on NuGet) hosts the startup console in a separate process and receives events over a named pipe — useful when the app itself must stay console-free. It sets the DEVKIT_LOGGING_ATTACH environment variable for the spawned client; HostLog.Attach() picks it up.

Part of the DevKit.Sharp family. MIT licensed.

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 is compatible.  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.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.2 47 8/3/2026
0.1.1 64 8/2/2026
0.1.0 69 8/2/2026