Add constructor with logEnabled