emilk / emilk/loguru

Make colors customizable

Open
#241 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
1.9k
Forks
280
Avg merge
7m
Merged PRs (30d)
4

Description

We can print with colors to terminal
```
#define KCYN "\x1B[36m"
printf("%scyn\n", KCYN );
```
Could it be added to the library as an optional parameter to verbosity levels?
```
#define KCYN "\x1B[36m"
#define DETAILS 3
LOG_F(3, KCYN, "log DETAILS with cyan color");
LOG_F(3, "log DETAILS with default color");
```
It would make it easy to write a custom functions for colored output.
```
auto LOG_F3(string message) {
LOG_F(DETAILS, KCYN, message);
}
```
The code is just demonstration of how idea may look.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.