Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adia-dev/use-chroma-logger
https://github.com/adia-dev/use-chroma-logger
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/adia-dev/use-chroma-logger
- Owner: adia-dev
- Created: 2024-02-14T20:02:04.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-02-14T20:17:24.000Z (9 months ago)
- Last Synced: 2024-04-20T16:53:10.388Z (7 months ago)
- Language: Zig
- Size: 49.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Use Chroma Logger in Zig
Use Chroma Logger is a Zig project demonstrating the integration of a colorful logging library, Chroma, to enhance terminal outputs. It showcases the library's capabilities in providing flexible and dynamic string formatting with ANSI color codes.
![Demo image](assets/chroma-logger.png)
> [!NOTE]
> The format of the timestamp is currently hardcoded to UTC+1 default format. This will be configurable in a future release.## ๐ Quick Start
Clone the repository and navigate into the project directory:
```
git clone https://github.com/adia-dev/use-chroma-logger.git
cd use-chroma-logger
```Run the project using Zig:
```
zig build run
```## ๐ฆ Installation
This project requires Zig version 0.12.0-dev.2701+d18f52197 or newer. Ensure Zig is installed on your system and correctly set up in your path.
## ๐ ๏ธ Building
To build the project, simply run:
```bash
zig build
```## ๐ Usage
After building, you can run the compiled executable directly:
```bash
zig build run
```This will display colorful log messages in your terminal, demonstrating Chroma's capabilities.
## ๐ง Configuration
No additional configuration is needed to get started with this project. However, you can customize the build settings in `build.zig` as needed.
## ๐งช Running Tests
To run unit tests, execute:
```
zig build test
```## ๐ก Features
- Integration with Chroma Logger for colorful terminal output.
- Demonstrates basic and advanced logging functionalities.
- Includes unit tests showcasing the library's testing capabilities.## ๐ Documentation
For more information on Chroma Logger, visit the [official repository](https://github.com/adia-dev/chroma-logger-zig).
For Zig language documentation, refer to the [Zig documentation](https://ziglang.org/documentation/master/).
## ๐ค Contributing
Contributions to this project are welcome! Please feel free to submit pull requests or open issues to suggest improvements or add new features.
## ๐ License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.