Polyglot.Notebook.Logger 1.0.2

dotnet add package Polyglot.Notebook.Logger --version 1.0.2
                    
NuGet\Install-Package Polyglot.Notebook.Logger -Version 1.0.2
                    
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="Polyglot.Notebook.Logger" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Polyglot.Notebook.Logger" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Polyglot.Notebook.Logger" />
                    
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 Polyglot.Notebook.Logger --version 1.0.2
                    
#r "nuget: Polyglot.Notebook.Logger, 1.0.2"
                    
#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.
#addin nuget:?package=Polyglot.Notebook.Logger&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Polyglot.Notebook.Logger&version=1.0.2
                    
Install as a Cake Tool

Polyglot Notebook Logger

A teeny-tiny logging library for Notebook

Usage

#r "nuget: Polygot.Notebook.Logger"
using Polygot.Notebook.Logger;
Log.Debug("Hi there, I am Polyglot.Notebook.Logger");
Log.Info("Hi there, I am Polyglot.Notebook.Logger");
Log.Warn("Hi there, I am Polyglot.Notebook.Logger");
Log.Error("Hi there, I am Polyglot.Notebook.Logger");
Log.Critical("Hi there, I am Polyglot.Notebook.Logger");

Output

A COLORED logging will be display in the output cell. The TEXT of which looks like:

01 03:25:01.09 | Debug | Hi there, I am Polyglot.Notebook.Logger
01 03:25:01.10 | Debug | Hi there, I am Polyglot.Notebook.Logger
01 03:25:01.10 | Warn  | Hi there, I am Polyglot.Notebook.Logger
01 03:25:01.10 | Err   | Hi there, I am Polyglot.Notebook.Logger
01 03:25:01.10 | Crit  | Hi there, I am Polyglot.Notebook.Logger

Progress Report

A simple progress bar can also be logged. One can modify the colors if desired

var pi = new ProgressIndicator(maxCount: 10, label: "Example Progress Status");
pi.Increment(); // Increment the Progress
pi.Increment(2); // Increment by given int

10.0% [■■■...........................] | 1/10 | 0.104 @ 0.104/it ETA: 00:00:00 | Example Progress Status

30.0% [■■■■■■■■■.....................] | 3/10 | 0.203 @ 0.099/it ETA: 00:00:00 | Example Progress Status

Example (Notebook)

See Example.ipynb to get started!

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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.
  • net6.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
1.0.2 123 2/16/2025
1.0.1 124 10/2/2024
1.0.0 116 10/1/2024

Add ProgressIndicator class. Log.Error can now take Exception