Add compiler option to enable logging at framework/library compile