Setting logging handler once before app init

In previous implementation, a new handler was being created
and added to app.logger. This one reuses, the original handler.

Signed-off-by: Shashank Sahni <shredder12@gmail.com>