Fish-Console-Lib is a library designed to enhance your console applications by providing advanced logging functionalities, including color support.
- Simple integration with existing console applications
- Support for colored output
To use Fish-Console-Lib, add the library to your project through DLL in your project references.
You can use Fish-Console-Lib without color support as shown below:
using Console = ConsoleLib.Console;
namespace ConsoleApp
{
public class Logger
{
public void Write(string message)
{
Console.Write(message);
}
}
}
To add color support to your console output, you can specify a color for the message:
using Console = ConsoleLib.Console;
using System.Drawing;
namespace ConsoleApp
{
public class Logger
{
public void Write(string message)
{
Console.Write(message, Color.BlueViolet);
}
}
}
Some code and inspiration were taken from various sources. Special thanks to them.