EggEgg.CSharp-Logger
2.2.0.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.
See the version list below for details.
dotnet add package EggEgg.CSharp-Logger --version 2.2.0.52-beta
NuGet\Install-Package EggEgg.CSharp-Logger -Version 2.2.0.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.2.0.52-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="EggEgg.CSharp-Logger" Version="2.2.0.52-beta" />
<PackageReference Include="EggEgg.CSharp-Logger" />
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 EggEgg.CSharp-Logger --version 2.2.0.52-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EggEgg.CSharp-Logger, 2.2.0.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.
#:package EggEgg.CSharp-Logger@2.2.0.52-beta
#: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=EggEgg.CSharp-Logger&version=2.2.0.52-beta&prerelease
#tool nuget:?package=EggEgg.CSharp-Logger&version=2.2.0.52-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
csharp-logger
A bussy but convenient C# Logger implement.
You can download it on nuget.org by searching EggEgg.CSharp-Logger.
Update
v2.2.0
- Obsoleted the
is_Debug_LogLevelconfig paramter.
UseGlobal_Minimum_LogLevelandConsole_Minimum_LogLevelinstead. You can now control logging output better by them. - Added
VerboseandNoneLogLevel.Log.Verbis avaliable now. - Other bugfix and improvements.
Features
- Common logger implements
Usage: FirstlyLog.Initialize(LoggerConfig), thenLog.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. - Command Line Support
if you wants to read the user's input while outputing logs parallel (e.g. making a command line program),ConsoleWrapperis provided.
You can set the value ofConsoleWrapper.InputPrefixas a waiting-input prefix, just likemysql>orubuntu ~$, and useConsoleWrapper.ReadLineAsyncto 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 byLoggerConfig(use_Console_Wrapper: true). - Output amount limit
Large infomation outputing can severely impact the performance. You can set the maximum output amount per line byLoggerConfig.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 likelogs.[Date].zip.
| Product | Versions 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.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 6.0.1-beta55 | 1 | 2/2/2026 |
| 6.0.1-beta54 | 5 | 1/28/2026 |
| 6.0.1-beta53 | 1 | 12/6/2025 |
| 6.0.1-beta52 | 0 | 12/6/2025 |
| 6.0.1-beta51 | 0 | 12/6/2025 |
| 6.0.0-rc54 | 0 | 9/7/2025 |
| 6.0.0-rc53 | 1 | 9/7/2025 |
| 6.0.0-rc52 | 98 | 9/2/2025 |
| 6.0.0-rc51 | 0 | 9/1/2025 |
| 6.0.0-rc50 | 4 | 9/1/2025 |
| 6.0.0-alpha54 | 0 | 9/8/2025 |
| 5.0.1-rc51 | 2 | 11/2/2024 |
| 5.0.1-rc50 | 0 | 10/30/2024 |
| 5.0.0-rc52 | 4 | 7/9/2024 |
| 5.0.0-rc51 | 5 | 7/1/2024 |
| 5.0.0-rc50 | 2 | 7/1/2024 |
| 4.1.0-rc59 | 2 | 6/30/2024 |
| 4.1.0-rc58 | 10 | 5/9/2024 |
| 4.1.0-dev572 | 4 | 5/8/2024 |
| 2.2.0.52-beta | 2 | 5/3/2023 |
Loading failed
Changes in v2.2.0
- 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.