Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make colors customizable #241

Open
ImperiumAeternum opened this issue Aug 4, 2023 · 0 comments
Open

Make colors customizable #241

ImperiumAeternum opened this issue Aug 4, 2023 · 0 comments

Comments

@ImperiumAeternum
Copy link

ImperiumAeternum commented Aug 4, 2023

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.

@ImperiumAeternum ImperiumAeternum changed the title Make customizable colors Make colors customizable Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant