In Finder I have changed the default app for *.log files to Visual Studio Code:

enter image description here

However log files are still being opened in the console app. Why is this and can it be fixed?

1