I’m currently integrating log4net into my game because I feel I need more professional logging that what’s possible with “print”. It works smoothly now when I’m using absolute paths to the log4net configuration file and logging output files. However, it would obviously be sweeter to use relative paths here.
Which makes the question arise: Relative to what?
I’m noticing that the layout of a Windows application is significantly different from the layout of a Mac OS application. Logging inside the editor is really important for me, too - and so far, I haven’t figured out where the relevant files for that are stored at all. I’ll disable logging for the Web player because that won’t work anyways ![]()
When I have my configuration file in the assets, it it possible to access that with the common IO operations (log4net probably won’t use any custom IO APIs)? If that won’t work - in which location should I put my config file for the editor / Windows player / Web player to be able to access the configuration file via file IO?
In the worst case, I could probably check where I’m running (editor / Windows / Mac OS) and use a specific path for each version…
Any ideas, suggestions on this?
Jashan