QiLog 1.1.2

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

QiLog

QiLog banner

About:

QiLog is incredibly simple, but despite this, it is an extremely convenient and customisable static logger.

See documentation and examples at Gitlab.

Latest update info: (1.1)

  • Added Log.Success() (Green) and Log.Fail() (Red)
  • Changed Log.Exception() color to Magenta and Log.Error() color to DarkRed
  • Added Log.TextColor property (change default text color for Log.Information() and other)
  • Some code refactoring and getting rid of rudiments
  • Now for .NET Framework! (Compiled for 3.5; 4.7.2)

Benefits

  • Ultra simple to use
  • Static logging
  • Customisable log line format, title, etc.
  • Colored console output

Some useful info

  • Write Log.CreateLog() to start logging. It is preferable to put it at the beginning, because logging calls without creating logs results in exceptions. BUT(!) Set the settings BEFORE CreateLog to configure logging.
  • QiLog by default writes log only into file. You can set LogToConsole = true; for console, or LogToDebug = true; for debug console (in your IDE).
  • Hover methods and properties to get useful information.

Example

using QiLog;

// Set flags before creating log!
Log.LogToConsole = true;
Log.LogToFile = true;

Log.CreateLog();

Log.Information("Information", "Main");
Log.Success("Success", "Main");
Log.Warning("Warning", "Main");
Log.Fail("Fail", "Main");
Log.Error("Error", "Main");
Log.Exception("Exception", "Main");
Log.Divide("Divider");
Log.Print("Print");
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. 
.NET Framework net35 is compatible.  net40 was computed.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 3.5

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • 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.1.2 184 11/28/2024
1.0.1 151 11/27/2024
1.0.0 162 11/7/2024

Urgent patch for stupid bugs