To enable logging on your local system, set up the following user environment variables:
- LOGGING_DIR =
C:\logging
- LOGGING_ENABLED_ASSERT =
1
- LOGGING_ENABLED_RUNTIME =
100
Important: If you need application tracing, these variables must be added to the System Environment Variables. However, a system reboot may be necessary for the changes to take effect.
Running the Report with Logging
- Open Crystal Reports or your remiCrystal and execute the report.
- Logging will begin automatically as the application runs.
Locating the Log Files
Once you've reproduced the issue, the log file will be stored in the directory specified by the LOGGING_DIR environment variable. Based on the example provided, the logs will be found in:
C:\logging
Make sure that you have given read and write permissions to the folder above to the user running remiCrystal
Disabling Logging
After troubleshooting is complete, make sure to disable logging to prevent performance degradation due to excessive tracing.
To stop logging in crlogger, close Crystal Reports or your .NET application, then do one of the following:
- Permanently disable logging: Remove the environment variables added earlier.
- Temporarily disable logging:
- Rename
crlogger.dll
tocrlogger.org
. - Update the environment variables as follows:
- Rename
Note: If you rename the crlogger.dll
file, logging will remain disabled until a system update or patch reinstalls the file, which will enable logging again.
Comments
0 comments
Article is closed for comments.