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

define LOG_LEVEL at runtime #3

Open
tshah16 opened this issue Jul 2, 2020 · 1 comment
Open

define LOG_LEVEL at runtime #3

tshah16 opened this issue Jul 2, 2020 · 1 comment

Comments

@tshah16
Copy link

tshah16 commented Jul 2, 2020

Hey is there anyway we can define LOG_LEVEL during runtime from the environment variable?

@hulloanson
Copy link

hulloanson commented Dec 3, 2020

Edit: sorry, I misread. Below are for compile time. Hm, there seems to be no way to do it. Do a pull request perhaps?

Yes. For gcc / cmake / make:

gcc -DLOG_LEVEL=2 ...
cmake -DLOG_LEVEL=2 ...
make CFLAGS=-DLOG_LEVEL=2

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

2 participants