EggEgg.CSharp-Logger 2.8.52-beta

This is a prerelease version of EggEgg.CSharp-Logger.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package EggEgg.CSharp-Logger --version 2.8.52-beta
NuGet\Install-Package EggEgg.CSharp-Logger -Version 2.8.52-beta
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="EggEgg.CSharp-Logger" Version="2.8.52-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EggEgg.CSharp-Logger --version 2.8.52-beta
#r "nuget: EggEgg.CSharp-Logger, 2.8.52-beta"
#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 EggEgg.CSharp-Logger as a Cake Addin
#addin nuget:?package=EggEgg.CSharp-Logger&version=2.8.52-beta&prerelease

// Install EggEgg.CSharp-Logger as a Cake Tool
#tool nuget:?package=EggEgg.CSharp-Logger&version=2.8.52-beta&prerelease


A bussy but convenient C# Logger implement.
You can download it on by searching EggEgg.CSharp-Logger.




  • Added logLevelWrite and logLevelFail paramter for the LogTraceListener.
    They will be used for invoking TraceListener.Write and TraceListener.Fail as the logLevel param.
  • Also, added a method Log.PushLog(string, LogLevel, string?) to log with any LogLevel at runtime.


  • Have some bugfix about auto compress logs.
  • Added debug_LogWriter_AutoFlush config paramter. Though it's recommended to set it to true, the default value is false because of compatiable reasons. For now, the unflushed parts of the log will be lost. More optimization will come in further versions.


  • Obsoleted the is_Debug_LogLevel config paramter.
    Use Global_Minimum_LogLevel and Console_Minimum_LogLevel instead. You can now control logging output better by them.
  • Added Verbose and None LogLevel. Log.Verb is avaliable now.
  • Other bugfix and improvements.


  • Common logger implements
    Usage: Firstly Log.Initialize(LoggerConfig), then Log.Info(content, sender), Log.Erro(...), Log.Warn(...), Log.Dbug(...).
  • Color output Support
    Just add xml tags in text, like:<color=Red>Output as red color</color>.
    The Color value should be a valid value in ConsoleColor, e.g. "Red", "Green".
    Recognized color tags will be removed in the log file.
  • Parallel input Support
    if you wants to read the user's input while outputing logs parallel (e.g. making a command interacting program), ConsoleWrapper is provided.
    You can set the value of ConsoleWrapper.InputPrefix as a waiting-input prefix, just like mysql> or ubuntu ~$ , and use ConsoleWrapper.ReadLineAsync to read inputs from the user.
    _Notice that it will impact the performance when the user's input is very large. It's disabled as default, and you can enable it by LoggerConfig(use_Console_Wrapper: true).
  • Output amount limit
    Large infomation outputing can severely impact the performance. You can set the maximum output amount per line by LoggerConfig.Max_Output_Char_Count.
    You can also disable this by setting it to -1.
  • Auto compress logs
    If there're logs created 1 day ago, they will be compressed into a zip file like logs.[Date].zip.
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.1.0-rc58 5 5/9/2024
4.1.0-rc57 4 4/28/2024
4.1.0-rc56 2 4/26/2024
4.1.0-rc55 7 3/28/2024
4.1.0-rc54 1 3/28/2024
4.1.0-rc53 3 3/25/2024
4.1.0-dev572 3 5/8/2024
4.1.0-dev571 4 5/7/2024
4.0.3-rc52 3 3/20/2024
4.0.3-rc51 7 2/18/2024
4.0.3-rc50 11 1/17/2024
4.0.2-rc53 104 12/21/2023
4.0.2-rc52 3 12/20/2023
4.0.2-beta51 2 12/14/2023
4.0.2-beta50 1 12/13/2023
3.8.59-beta 6 9/17/2023
3.8.58-beta 3 9/15/2023
3.8.57-beta 3 9/13/2023
3.8.56-beta 5 9/4/2023
3.8.55-beta 1 9/3/2023
3.8.54-beta 4 8/24/2023
3.8.53-beta 2 8/23/2023
3.8.52-beta 2 8/22/2023
3.8.51-beta 2 8/22/2023
3.8.50-beta 1 8/22/2023
3.7.50-beta 0 8/22/2023
3.6.50-beta 1 8/22/2023
3.5.50-beta 1 8/22/2023
3.4.50-beta 2 8/22/2023
3.3.52-beta 2 8/22/2023
3.3.51-beta 2 8/22/2023
3.3.50-beta 2 8/21/2023
3.2.50-beta 2 8/16/2023
3.1.51-beta 1 8/15/2023
3.1.50-beta 2 8/15/2023
3.0.52-beta 1 8/15/2023
3.0.51-beta 3 8/15/2023
2.8.54-beta 1 7/13/2023
2.8.53-beta 1 7/13/2023
2.8.52-beta 0 7/13/2023
2.8.51-beta 2 7/12/2023
2.8.50-beta 1 7/12/2023 2 5/3/2023 2 5/3/2023 0 5/3/2023
2.2.0-beta 2 5/3/2023
2.1.32-alpha 2 4/15/2023
2.1.3-beta 2 4/15/2023
2.1.3-alpha 2 4/15/2023

Changes in v3.0.0
- Fixed the unflushed logs lost when the program is exiting.
- Fixed the debug.log file unflushed bug when the program is exiting.
- Added ConsoleWrapper paste text feature.
- Fixed the issue that the console can't be scrolled when ConsoleWrapper is waiting for input.
- Fixed the bug that the console wrapper will produce `InputPrefix` repeatedly when exiting.
- Other logger and ConsoleWrapper improvements.