move defines for logging in or not action to main.cpp