use system variables to enable logging