Addding logging functions for the flask module