FluentConsole.Net
1.0.8557
See the version list below for details.
dotnet add package FluentConsole.Net --version 1.0.8557
NuGet\Install-Package FluentConsole.Net -Version 1.0.8557
<PackageReference Include="FluentConsole.Net" Version="1.0.8557" />
paket add FluentConsole.Net --version 1.0.8557
#r "nuget: FluentConsole.Net, 1.0.8557"
// Install FluentConsole.Net as a Cake Addin #addin nuget:?package=FluentConsole.Net&version=1.0.8557 // Install FluentConsole.Net as a Cake Tool #tool nuget:?package=FluentConsole.Net&version=1.0.8557
FluentConsole.Net
Using .Net Console In Elegant Way !
✔ Easy to use and develop , clean code , and also designed to be fully thread-safe.
✔ FluentConsole.Net uses fluent builder pattern.
✔ FluentConsole.Net has fluent extension methods to write directly on Console.
✔ FluentConsole.Net is able to use FastLog.Net logger to also log the data when printing on the Console.
How To Use ❔
- An elegant fluent builder pattern to work with Console 👇
FluentConsole.Console
.WithFontColor(ConsoleColor.Yellow)
.WithBackColor(ConsoleColor.DarkGray)
.Write(DateTime.Now.ToString())
.AddSpace()
.WriteLine("Fluent Console For .Net")
.AddCharacter('*', 20)
.AddBreakLine(2)
.WriteLine("Developed By Shayan Firoozi")
.Print();
- Another Example with FastLog.Net , high performance logger 👇
FluentConsole.AttachLogger(fastLogger);
FluentConsole.Console
.WithTitle("This is the Fluent Console For .Net")
.WithFontColor(ConsoleColor.Yellow)
.AddLine(LineWidth: 20)
.Write("Who wants to live forever ?!")
.Beep()
.PrintAndLog();
- Also u can easily use built-in Extension Methods 👇
1364.WriteLineOnConsole(Formatted: true);
true.WriteLineOnConsole();
false.WriteLineOnConsole(YesNoFormat: true);
// Also for List<string>
List<string> greatest = new List<string>() { "David Gilmour", "Joe Satriani", "Stevie Ray Vaughan", "Slash !", "Paul Mccartney" };
greatest.WriteLineOnConsole();
// Printing your Exception object as easy as hell !
new InvalidOperationException("This a test exception I want to throw !!").WriteLineOnConsoleWithJSON();
new InvalidOperationException("This a test exception I want to throw !!").WriteLineOnConsole();
// Print DateTime object in proper and also optional format on console
FluentConsole.Console.WriteLine(DateTime.Now).Print();
FluentConsole.Console.WriteLine(DateTime.Now,"HH:mm:ss").Print();
GitHub Repository
Please visit FluentConsole.Net Github repository for source code and more info : FluentConsole.Net On GitHub
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 is compatible. 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. |
.NET Framework | net48 is compatible. net481 was computed. |
-
.NETFramework 4.8
- Microsoft.CSharp (>= 4.7.0)
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on FluentConsole.Net:
Package | Downloads |
---|---|
FastLog.Net
High performance and fully thread-safe logger for .NET 💯 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.8568 | 570 | 6/17/2023 |
1.0.8566.1 | 404 | 6/15/2023 |
1.0.8566 | 423 | 6/14/2023 |
1.0.8565.1 | 150 | 6/14/2023 |
1.0.8565 | 155 | 6/14/2023 |
1.0.8564 | 410 | 6/13/2023 |
1.0.8562.1 | 156 | 6/11/2023 |
1.0.8562 | 149 | 6/11/2023 |
1.0.8561 | 162 | 6/10/2023 |
1.0.8557 | 138 | 6/5/2023 |
1.0.8556 | 410 | 6/4/2023 |
1.0.8555 | 151 | 6/3/2023 |
✔ Refactor Write and WriteLine.
✔ Add more overload for Write and WriteLine
✔ Add Exception class print on console with normal and JSON format.
✔ Rename some methods.