Replaced app.logger use with working logging calls