Make namespace optional in log factory