Allow injecting log object