NEW: added option to force logging