In the Aion BRE, there is a property setting that can be chosen, in order to change message box popup into log file entries. This may eliminate the need for explicit "writetolog" statements.
- Click on the default "Library" tab of the Workspace, in case it is not already up by default.
- Highlight the word "Classes".
- Right-mouse-click on Classes, and choose Properties. The Library Properties window will be shown.
- Select the Advanced tab. You should see GUID, Additional Link Libraries and the Error Handling tab. The GUID and Additional Link Libraries fields can be left blank, as well as the field for Additional Error Information.
- Change Open Message Box to Write To Log. Note that even if no error occurs, all message box statements will be written to a log, as if the message box statement were written as a "WritetoLog" statement.
- Run your Aion application.
- Notice that no message box windows popped up. These are instead written to the "aion.log" file, in the same directory where you had executed your Aion application.
Note that any Writetotrace statements will always go into your <myapp>.trc file, if you have set up tracing in the File:Settings window.