1
I implemented the Logging python on several Flask projects successfully. But when I tried to re-implement Logging in a project it gives the following error:IOError: [Errno 13] Permission denied. 
To try to solve the problem I created the file and still the error continues. Strange this error occurs after having used the same code for all previous projects.
Supposedly the error occurs in the following code:
if __name__ == '__main__':
    import logging
    logging.basicConfig(filename='error.log', level=logging.WARNING)
    app.run()
which user is running the application?
– ppalacios
Tries to change the file location.
– gato
This is running on my development machine. So it should have all the permissions.
– urb