My application is writing logs to a directory, which is hardcoded "Logs" and is present under the runtime directory of my application.
Today, a customer asked me if it was possible to have those logs on another place (on another computer).
As a first test, I tried to create a symlink:
- I stopped the application.
- I removed the "Logs" directory.
- Using a WSL on my computer, I created a symlink, something like
ln -s /mnt/c/Temp_Folder/TestLog/ /mnt/c/<Application>/Logs
. - I started up my application.
I did not see any logs appearing in the directory C:\Temp_Folder\TestLog\
.
I see different reasons:
- Either it's a complete stupid idea to try to use Linux technology on a Windows computer.
- Either it might work, but some extra things need to be taken into account.
I hope it's the second choice, but in that case, what things do I need to take into account?