Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/official-notfishvr/fish-console-lib
This is a Console Lib for your Console app!
https://github.com/official-notfishvr/fish-console-lib
c-sharp console console-lib csharp lib
Last synced: about 1 month ago
JSON representation
This is a Console Lib for your Console app!
- Host: GitHub
- URL: https://github.com/official-notfishvr/fish-console-lib
- Owner: official-notfishvr
- Created: 2024-07-20T07:32:25.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-12T22:25:11.000Z (5 months ago)
- Last Synced: 2024-10-20T08:03:35.552Z (2 months ago)
- Topics: c-sharp, console, console-lib, csharp, lib
- Language: C#
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fish-Console-Lib
Fish-Console-Lib is a library designed to enhance your console applications by providing advanced logging functionalities, including color support.
## Features
- Simple integration with existing console applications
- Support for colored output## Installation
To use Fish-Console-Lib, add the library to your project through DLL in your project references.
## Usage
### Without Color
You can use Fish-Console-Lib without color support as shown below:
```csharp
using Console = ConsoleLib.Console;namespace ConsoleApp
{
public class Logger
{
public void Write(string message)
{
Console.Write(message);
}
}
}
```### With Color
To add color support to your console output, you can specify a color for the message:
```csharp
using Console = ConsoleLib.Console;
using System.Drawing;namespace ConsoleApp
{
public class Logger
{
public void Write(string message)
{
Console.Write(message, Color.BlueViolet);
}
}
}
```## Acknowledgments
Some code and inspiration were taken from various sources. Special thanks to them.