Logging issues with the Email Engine
To use the Email Engine logs and console output
- Stop the Email Engine, and then re-start it from the command line by using debug mode.
For more information, see Creating-email-debug-batch-files. - Examine the AR System Email Error Logs form.
The email daemon always uses the AR System Email Error Logs form when logging errors and warnings. This should be the first place you look to identify an issue. - Consult the console output to access more details, such as stack traces and the exact exceptions generated.
The location of the console output depends on how the application is executed and on which system:- (Recommended) For both Windows and UNIX, when the Email Engine is started from the command line, all console output is piped to the open console window.
This is the quickest and easiest way to identify an issue because you can see where the output actually occurred and you can trace any errors. - When the email daemon is executed on Windows as a service, the output is located under the logs subdirectory of the Email Engine installation (by default, emailEngineInstallDir/AREmail/Logs). The email.log file contains the console output.
On UNIX, the console output is placed under the emailEngineInstallDir/logs directory, but is stored in only one file called emaild.sh_log.
- (Recommended) For both Windows and UNIX, when the Email Engine is started from the command line, all console output is piped to the open console window.
- Make sure that console logging is turned on in the emaildaemon.properties file, located in the AREmail directory.
Enable the console output with the following handler property:
handlers = java.util.logging.ConsoleHandlerSet the level for console logging.
By default, the level is usually set to INFO, which locates most issues with the Email Engine. You can set this level with the following command:java.util.logging.ConsoleHandler.level = INFOSet the level for the entire application. Make sure that the following two lines are located in the emaildaemon.properties file:
com.bmc.arsys.emaildaemon.level = INFO
com.bmc.arsys.emaildaemon.ARSystemHandler.level = INFOThe first line sets the level for the entire application; the second line sets the level for logging to the AR System Email Error Logs form. The level for the form logging should never be set lower than INFO. Else, the table will fill up very quickly and use more space.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*