define LOG_LEVEL at runtime
tshah16 opened this issue · 1 comments
tshah16 commented
Hey is there anyway we can define LOG_LEVEL during runtime from the environment variable?
hulloanson commented
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