add log factory