Debugging "printf"-style

To accomplish printf style debugging, temporarily place all log files from the host and the SPUs in a single shared directory. For local AEs, this can be done on a per function basis using the NZAE_LOG_DIR AE environment variable. For example, if the shared export directory is /nz/export/ae, the register_ae option is:

--environment "'NZAE_LOG_DIR'='/nz/export/ae/log'"

In this example the log directory is not part of the installation. Create a log directory somewhere in the shared export tree. In a production environment, NZAE_LOG_DIR should not be used because of the potential for performance degradation as well as the fact that log file storage space is not automatically released on system restart.

In addition, you must set a logging level greater than zero in the registration. For example:

register_ae option --level 1

When the SQL function is called invoking the AE, the log files are created in the specified log directory.