Enable --log option by default. Introduce --nolog option to disable the
logs. Tests api changed to reflect this change.