TeamConnect's SMTP appender collects the logger messages in a buffer with a specified size. When the buffer receives a message with a severity of Error or higher, the SMTP appender sends an email message with the log events currently in the buffer to the specified email addresses.
1.On the Admin menu in the System Settings drop-down list, select System Logging or Audit Logging, depending on which type of logging you need to define. 2.In the System Appenders section, click New. A new appender screen opens.
3.Select SMTP Appender from the Appender Type drop-down list. The SMTP Appender Information section is displayed.
For information on how to define appenders, see Defining System Appenders or Defining Audit Appenders. Whether you are defining an SMTP appender for system or audit logging, the SMTP appender settings are the same. The following image shows a set of sample settings:
 SMTP Appender Information
In addition to the fields described in the following table, you must configure the Outgoing Mail Server Settings section of the Email page under Admin Settings. For more details, see the Admin Settings, Email Page Field Descriptions table.
|
Field
|
Description
|
To
|
The email addresses to which the log should be sent when a triggering log event occurs. Use commas to separate each address.
|
Buffer Size
|
The maximum size, in kilobytes, of the buffer that collects logging events. When the maximum buffer size is reached, the oldest events are deleted as new events are added to the buffer.
The default buffer size is 512 kilobytes.
|
Evaluator Class
|
To specify a log level other than Error (the default) to trigger email messages, you must upload a class that modifies the triggering level. Enter the name of the class file in this field.
|
Include Location Information
|
Select this option to include the location information in the logging events placed in the buffer. For a description of the location information, see the Log4j® Pattern Layout Conversion Specifiers table.
If this option is not selected, the location information is replaced with a question mark (?) in the log. However, it can help reduce the generation time of the logging events.
|
Layout
|
Select whether you want to use a Pattern, HTML, or XML layout for the contents being written to the buffer. Pattern Layout is selected by default.
The layout functionality is identical to that of the file appender. For more details, see File Appender Layouts.
|
Pattern
|
This field becomes available when Pattern Layout is selected in the Layout field.
Type the pattern you want to use to display the logging messages in the log file. For more details, see Pattern Layout.
|
|