From what I gather from the allegro source (open_trace_file in debug.c), the allegro log is either saved as "allegro.log" in the current directory, or you can use the ALLEGRO_TRACE environment variable to override the location.
Problem is that in a Windows 10 situation, you don't have write access to the current directory if it's under C:\Program Files (x86)\MyGame
What I want to do is to put the log in the AppData directory instead. I tried to override ALLEGRO_TRACE like so:
Except that doesn't work. I think because ALLEGRO_TRACE has to be set before allegro_init, and you can't call al_get_standard_path before allegro_init.
Does anybody know a solution?
By the way, is it possible to add your own log statements to the same log file? That is not documented AFAICT.