If the logs directory doesnt exist it will be created automatically